Added Event entity type.
This commit is contained in:
58
modules/opencase_entities/src/Entity/OCEventInterface.php
Normal file
58
modules/opencase_entities/src/Entity/OCEventInterface.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?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);
|
||||
|
||||
}
|
Reference in New Issue
Block a user