ItemInterface.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?php
  2. namespace Drupal\aggregator;
  3. use Drupal\Core\Entity\ContentEntityInterface;
  4. /**
  5. * Provides an interface defining an aggregator item entity.
  6. */
  7. interface ItemInterface extends ContentEntityInterface {
  8. /**
  9. * Returns the feed id of aggregator item.
  10. *
  11. * @return int
  12. * The feed id.
  13. */
  14. public function getFeedId();
  15. /**
  16. * Sets the feed id of aggregator item.
  17. *
  18. * @param int $fid
  19. * The feed id.
  20. *
  21. * @return \Drupal\aggregator\ItemInterface
  22. * The called feed item entity.
  23. */
  24. public function setFeedId($fid);
  25. /**
  26. * Returns the title of the feed item.
  27. *
  28. * @return string
  29. * The title of the feed item.
  30. */
  31. public function getTitle();
  32. /**
  33. * Sets the title of the feed item.
  34. *
  35. * @param string $title
  36. * The title of the feed item.
  37. *
  38. * @return \Drupal\aggregator\ItemInterface
  39. * The called feed item entity.
  40. */
  41. public function setTitle($title);
  42. /**
  43. * Returns the link to the feed item.
  44. *
  45. * @return string
  46. * The link to the feed item.
  47. */
  48. public function getLink();
  49. /**
  50. * Sets the link to the feed item.
  51. *
  52. * @param string $link
  53. * The link to the feed item.
  54. *
  55. * @return \Drupal\aggregator\ItemInterface
  56. * The called feed item entity.
  57. */
  58. public function setLink($link);
  59. /**
  60. * Returns the author of the feed item.
  61. *
  62. * @return string
  63. * The author of the feed item.
  64. */
  65. public function getAuthor();
  66. /**
  67. * Sets the author of the feed item.
  68. *
  69. * @param string $author
  70. * The author name of the feed item.
  71. *
  72. * @return \Drupal\aggregator\ItemInterface
  73. * The called feed item entity.
  74. */
  75. public function setAuthor($author);
  76. /**
  77. * Returns the body of the feed item.
  78. *
  79. * @return string
  80. * The body of the feed item.
  81. */
  82. public function getDescription();
  83. /**
  84. * Sets the body of the feed item.
  85. *
  86. * @param string $description
  87. * The body of the feed item.
  88. *
  89. * @return \Drupal\aggregator\ItemInterface
  90. * The called feed item entity.
  91. */
  92. public function setDescription($description);
  93. /**
  94. * Returns the posted date of the feed item, as a Unix timestamp.
  95. *
  96. * @return int
  97. * The posted date of the feed item, as a Unix timestamp.
  98. */
  99. public function getPostedTime();
  100. /**
  101. * Sets the posted date of the feed item, as a Unix timestamp.
  102. *
  103. * @param int $timestamp
  104. * The posted date of the feed item, as a Unix timestamp.
  105. *
  106. * @return \Drupal\aggregator\ItemInterface
  107. * The called feed item entity.
  108. */
  109. public function setPostedTime($timestamp);
  110. /**
  111. * Returns the unique identifier for the feed item.
  112. *
  113. * @return string
  114. * The unique identifier for the feed item.
  115. */
  116. public function getGuid();
  117. /**
  118. * Sets the unique identifier for the feed item.
  119. *
  120. * @param string $guid
  121. * The unique identifier for the feed item.
  122. *
  123. * @return \Drupal\aggregator\ItemInterface
  124. * The called feed item entity.
  125. */
  126. public function setGuid($guid);
  127. }