123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <?php
- namespace Drupal\heartbeat\Entity;
- use Drupal\Core\Config\Entity\ConfigEntityInterface;
- /**
- * Provides an interface for defining Heartbeat type entities.
- */
- interface HeartbeatTypeInterface extends ConfigEntityInterface {
- /*
- * Sets the unique Message ID
- *
- * @param string $messageId
- * The unique Message ID to represent
- * all messages of this type
- */
- public function setMessageId($messageId);
- /*
- * Gets the unique Message ID
- *
- * @return string
- * The Stream's Message ID
- */
- public function getMessageId();
- /**
- * Sets the description of the stream
- *
- * @param string $description
- * Describing streams of this type
- */
- public function setDescription($description);
- /**
- * Gets the description of the HeartbeatType
- *
- * @return string
- * The Stream's description
- */
- public function getDescription();
- /**
- * Sets the main Entity Type of the Heartbeat Type
- *
- * @param string $mainentity
- * Describing entity type used in this Heartbeat Type
- */
- public function setMainEntity($mainentity);
- /**
- * Gets the main Entity Type of the Heartbeat Type
- *
- * @return string
- * The Heartbeat Type's main Entity Type
- */
- public function getMainEntity();
- /**
- * Sets the translatable message
- * This message creates the structure of each message
- *
- * @param string $message
- * The template message serving as the foundation of each message structure of this stream type
- */
- public function setMessage($message);
- /**
- * Gets the translatable message of the stream
- *
- * @return string
- * The Stream's message
- */
- public function getMessage();
- // /**
- // * Sets the translatable concatenated message
- // *
- // * @param string $messageConcat
- // *
- // */
- //
- // public function setMessageConcat($messageConcat);
- //
- //
- // /**
- // * Gets the concatenated message of the stream
- // *
- // * @return string
- // * The Stream's concatenated message
- // */
- //
- // public function getMessageConcat();
- /**
- * Sets the Permissions for this message stream
- *
- * @param int $perms
- *
- */
- public function setPerms($perms);
- /**
- * Gets the Permissions of this message stream
- *
- * @return int
- * The stream's permissions
- */
- public function getPerms();
- /**
- * Sets the Group Type for this message stream
- *
- * @param string $groupType
- *
- */
- public function setGroupType($groupType);
- /**
- * Gets the Group Type of this message stream
- *
- * @return string
- * The stream's Group Type
- */
- public function getGroupType();
- /**
- * Sets the arguments for the concatenated message
- *
- * @param string $arguments
- *
- */
- public function setArguments($arguments);
- /**
- * Gets the arguments for the concatenated message
- *
- * @return string
- * The stream's arguments for the concatenated message
- */
- public function getArguments();
- /**
- * Sets the variables for this message stream
- *
- * @param string $variables
- *
- */
- public function setVariables($variables);
- /**
- * Gets the variables of this message stream
- *
- * @return string
- * The stream's variables
- */
- public function getVariables();
- /**
- * Sets the bundle targeted for this Heartbeat type
- *
- * @param string $variables
- *
- */
- public function setBundle($bundle);
- /**
- * Gets the bundle of this Heartbeat type
- *
- * @return string
- * The stream's variables
- */
- public function getBundle();
- /**
- * @return mixed
- */
- public function setWeight($weight);
- /**
- * @param $weight
- * @return mixed
- */
- public function getWeight();
- // /**
- // * Sets the attachments for this message stream
- // *
- // * @param string $attachments
- // *
- // */
- //
- // public function setAttachments($attachments);
- //
- //
- // /**
- // * Gets the attachments of this message stream
- // *
- // * @return string
- // * The stream's attachments
- // */
- //
- // public function getAttachments();
- }
|