HeartbeatTypeInterface.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <?php
  2. namespace Drupal\heartbeat\Entity;
  3. use Drupal\Core\Config\Entity\ConfigEntityInterface;
  4. /**
  5. * Provides an interface for defining Heartbeat type entities.
  6. */
  7. interface HeartbeatTypeInterface extends ConfigEntityInterface {
  8. /*
  9. * Sets the unique Message ID
  10. *
  11. * @param string $messageId
  12. * The unique Message ID to represent
  13. * all messages of this type
  14. */
  15. public function setMessageId($messageId);
  16. /*
  17. * Gets the unique Message ID
  18. *
  19. * @return string
  20. * The Stream's Message ID
  21. */
  22. public function getMessageId();
  23. /**
  24. * Sets the description of the stream
  25. *
  26. * @param string $description
  27. * Describing streams of this type
  28. */
  29. public function setDescription($description);
  30. /**
  31. * Gets the description of the HeartbeatType
  32. *
  33. * @return string
  34. * The Stream's description
  35. */
  36. public function getDescription();
  37. /**
  38. * Sets the main Entity Type of the Heartbeat Type
  39. *
  40. * @param string $mainentity
  41. * Describing entity type used in this Heartbeat Type
  42. */
  43. public function setMainEntity($mainentity);
  44. /**
  45. * Gets the main Entity Type of the Heartbeat Type
  46. *
  47. * @return string
  48. * The Heartbeat Type's main Entity Type
  49. */
  50. public function getMainEntity();
  51. /**
  52. * Sets the translatable message
  53. * This message creates the structure of each message
  54. *
  55. * @param string $message
  56. * The template message serving as the foundation of each message structure of this stream type
  57. */
  58. public function setMessage($message);
  59. /**
  60. * Gets the translatable message of the stream
  61. *
  62. * @return string
  63. * The Stream's message
  64. */
  65. public function getMessage();
  66. // /**
  67. // * Sets the translatable concatenated message
  68. // *
  69. // * @param string $messageConcat
  70. // *
  71. // */
  72. //
  73. // public function setMessageConcat($messageConcat);
  74. //
  75. //
  76. // /**
  77. // * Gets the concatenated message of the stream
  78. // *
  79. // * @return string
  80. // * The Stream's concatenated message
  81. // */
  82. //
  83. // public function getMessageConcat();
  84. /**
  85. * Sets the Permissions for this message stream
  86. *
  87. * @param int $perms
  88. *
  89. */
  90. public function setPerms($perms);
  91. /**
  92. * Gets the Permissions of this message stream
  93. *
  94. * @return int
  95. * The stream's permissions
  96. */
  97. public function getPerms();
  98. /**
  99. * Sets the Group Type for this message stream
  100. *
  101. * @param string $groupType
  102. *
  103. */
  104. public function setGroupType($groupType);
  105. /**
  106. * Gets the Group Type of this message stream
  107. *
  108. * @return string
  109. * The stream's Group Type
  110. */
  111. public function getGroupType();
  112. /**
  113. * Sets the arguments for the concatenated message
  114. *
  115. * @param string $arguments
  116. *
  117. */
  118. public function setArguments($arguments);
  119. /**
  120. * Gets the arguments for the concatenated message
  121. *
  122. * @return string
  123. * The stream's arguments for the concatenated message
  124. */
  125. public function getArguments();
  126. /**
  127. * Sets the variables for this message stream
  128. *
  129. * @param string $variables
  130. *
  131. */
  132. public function setVariables($variables);
  133. /**
  134. * Gets the variables of this message stream
  135. *
  136. * @return string
  137. * The stream's variables
  138. */
  139. public function getVariables();
  140. /**
  141. * Sets the bundle targeted for this Heartbeat type
  142. *
  143. * @param string $variables
  144. *
  145. */
  146. public function setBundle($bundle);
  147. /**
  148. * Gets the bundle of this Heartbeat type
  149. *
  150. * @return string
  151. * The stream's variables
  152. */
  153. public function getBundle();
  154. /**
  155. * @return mixed
  156. */
  157. public function setWeight($weight);
  158. /**
  159. * @param $weight
  160. * @return mixed
  161. */
  162. public function getWeight();
  163. // /**
  164. // * Sets the attachments for this message stream
  165. // *
  166. // * @param string $attachments
  167. // *
  168. // */
  169. //
  170. // public function setAttachments($attachments);
  171. //
  172. //
  173. // /**
  174. // * Gets the attachments of this message stream
  175. // *
  176. // * @return string
  177. // * The stream's attachments
  178. // */
  179. //
  180. // public function getAttachments();
  181. }