recurring_events-2.0.x-dev/src/EventInterface.php
src/EventInterface.php
<?php
declare(strict_types=1);
namespace Drupal\recurring_events;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\Core\Entity\EntityPublishedInterface;
use Drupal\Core\Entity\RevisionLogInterface;
use Drupal\user\EntityOwnerInterface;
/**
* Provides an interface defining an EventSeries and EventInstance entities.
*/
interface EventInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface, RevisionLogInterface, EntityPublishedInterface {
/**
* Denotes that the event/eventinstance is not published.
*/
const NOT_PUBLISHED = 0;
/**
* Denotes that the event/eventinstance is published.
*/
const PUBLISHED = 1;
/**
* Gets the event revision creation timestamp.
*
* @return int
* The UNIX timestamp of when this revision was created.
*/
public function getRevisionCreationTime();
/**
* Sets the event revision creation timestamp.
*
* @param int $timestamp
* The UNIX timestamp of when this revision was created.
*
* @return \Drupal\recurring_events\EventInterface
* The called event entity.
*/
public function setRevisionCreationTime($timestamp);
}
