59 lines
1.2 KiB
PHP
59 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Drupal\opencase_entities\Entity;
|
|
|
|
use Drupal\Core\Entity\ContentEntityInterface;
|
|
use Drupal\Core\Entity\EntityChangedInterface;
|
|
use Drupal\Core\Entity\EntityPublishedInterface;
|
|
|
|
/**
|
|
* Provides an interface for defining Event entities.
|
|
*
|
|
* @ingroup opencase_entities
|
|
*/
|
|
interface OCEventInterface extends ContentEntityInterface, EntityChangedInterface, EntityPublishedInterface {
|
|
|
|
/**
|
|
* Add get/set methods for your configuration properties here.
|
|
*/
|
|
|
|
/**
|
|
* Gets the Event name.
|
|
*
|
|
* @return string
|
|
* Name of the Event.
|
|
*/
|
|
public function getName();
|
|
|
|
/**
|
|
* Sets the Event name.
|
|
*
|
|
* @param string $name
|
|
* The Event name.
|
|
*
|
|
* @return \Drupal\opencase_entities\Entity\OCEventInterface
|
|
* The called Event entity.
|
|
*/
|
|
public function setName($name);
|
|
|
|
/**
|
|
* Gets the Event creation timestamp.
|
|
*
|
|
* @return int
|
|
* Creation timestamp of the Event.
|
|
*/
|
|
public function getCreatedTime();
|
|
|
|
/**
|
|
* Sets the Event creation timestamp.
|
|
*
|
|
* @param int $timestamp
|
|
* The Event creation timestamp.
|
|
*
|
|
* @return \Drupal\opencase_entities\Entity\OCEventInterface
|
|
* The called Event entity.
|
|
*/
|
|
public function setCreatedTime($timestamp);
|
|
|
|
}
|