99 lines
2.5 KiB
PHP
99 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace Drupal\opencase_cases\Entity;
|
|
|
|
use Drupal\Core\Entity\ContentEntityInterface;
|
|
use Drupal\Core\Entity\RevisionLogInterface;
|
|
use Drupal\Core\Entity\EntityChangedInterface;
|
|
use Drupal\Core\Entity\EntityPublishedInterface;
|
|
use Drupal\user\EntityOwnerInterface;
|
|
|
|
/**
|
|
* Provides an interface for defining Actor-Case Relation entities.
|
|
*
|
|
* @ingroup opencase_cases
|
|
*/
|
|
interface OCActorCaseRelationInterface extends ContentEntityInterface, RevisionLogInterface, EntityChangedInterface, EntityPublishedInterface, EntityOwnerInterface {
|
|
|
|
/**
|
|
* Add get/set methods for your configuration properties here.
|
|
*/
|
|
|
|
/**
|
|
* Gets the Actor-Case Relation name.
|
|
*
|
|
* @return string
|
|
* Name of the Actor-Case Relation.
|
|
*/
|
|
public function getName();
|
|
|
|
/**
|
|
* Sets the Actor-Case Relation name.
|
|
*
|
|
* @param string $name
|
|
* The Actor-Case Relation name.
|
|
*
|
|
* @return \Drupal\opencase_cases\Entity\OCActorCaseRelationInterface
|
|
* The called Actor-Case Relation entity.
|
|
*/
|
|
public function setName($name);
|
|
|
|
/**
|
|
* Gets the Actor-Case Relation creation timestamp.
|
|
*
|
|
* @return int
|
|
* Creation timestamp of the Actor-Case Relation.
|
|
*/
|
|
public function getCreatedTime();
|
|
|
|
/**
|
|
* Sets the Actor-Case Relation creation timestamp.
|
|
*
|
|
* @param int $timestamp
|
|
* The Actor-Case Relation creation timestamp.
|
|
*
|
|
* @return \Drupal\opencase_cases\Entity\OCActorCaseRelationInterface
|
|
* The called Actor-Case Relation entity.
|
|
*/
|
|
public function setCreatedTime($timestamp);
|
|
|
|
/**
|
|
* Gets the Actor-Case Relation revision creation timestamp.
|
|
*
|
|
* @return int
|
|
* The UNIX timestamp of when this revision was created.
|
|
*/
|
|
public function getRevisionCreationTime();
|
|
|
|
/**
|
|
* Sets the Actor-Case Relation revision creation timestamp.
|
|
*
|
|
* @param int $timestamp
|
|
* The UNIX timestamp of when this revision was created.
|
|
*
|
|
* @return \Drupal\opencase_cases\Entity\OCActorCaseRelationInterface
|
|
* The called Actor-Case Relation entity.
|
|
*/
|
|
public function setRevisionCreationTime($timestamp);
|
|
|
|
/**
|
|
* Gets the Actor-Case Relation revision author.
|
|
*
|
|
* @return \Drupal\user\UserInterface
|
|
* The user entity for the revision author.
|
|
*/
|
|
public function getRevisionUser();
|
|
|
|
/**
|
|
* Sets the Actor-Case Relation revision author.
|
|
*
|
|
* @param int $uid
|
|
* The user ID of the revision author.
|
|
*
|
|
* @return \Drupal\opencase_cases\Entity\OCActorCaseRelationInterface
|
|
* The called Actor-Case Relation entity.
|
|
*/
|
|
public function setRevisionUserId($uid);
|
|
|
|
}
|