3 namespace Drupal\aggregator;
5 use Drupal\Core\Entity\ContentEntityInterface;
8 * Provides an interface defining an aggregator item entity.
10 interface ItemInterface extends ContentEntityInterface {
13 * Returns the feed id of aggregator item.
18 public function getFeedId();
21 * Sets the feed id of aggregator item.
26 * @return \Drupal\aggregator\ItemInterface
27 * The called feed item entity.
29 public function setFeedId($fid);
32 * Returns the title of the feed item.
35 * The title of the feed item.
37 public function getTitle();
40 * Sets the title of the feed item.
42 * @param string $title
43 * The title of the feed item.
45 * @return \Drupal\aggregator\ItemInterface
46 * The called feed item entity.
48 public function setTitle($title);
51 * Returns the link to the feed item.
54 * The link to the feed item.
56 public function getLink();
59 * Sets the link to the feed item.
62 * The link to the feed item.
64 * @return \Drupal\aggregator\ItemInterface
65 * The called feed item entity.
67 public function setLink($link);
70 * Returns the author of the feed item.
73 * The author of the feed item.
75 public function getAuthor();
78 * Sets the author of the feed item.
80 * @param string $author
81 * The author name of the feed item.
83 * @return \Drupal\aggregator\ItemInterface
84 * The called feed item entity.
86 public function setAuthor($author);
89 * Returns the body of the feed item.
92 * The body of the feed item.
94 public function getDescription();
97 * Sets the body of the feed item.
99 * @param string $description
100 * The body of the feed item.
102 * @return \Drupal\aggregator\ItemInterface
103 * The called feed item entity.
105 public function setDescription($description);
108 * Returns the posted date of the feed item, as a Unix timestamp.
111 * The posted date of the feed item, as a Unix timestamp.
113 public function getPostedTime();
116 * Sets the posted date of the feed item, as a Unix timestamp.
118 * @param int $timestamp
119 * The posted date of the feed item, as a Unix timestamp.
121 * @return \Drupal\aggregator\ItemInterface
122 * The called feed item entity.
124 public function setPostedTime($timestamp);
127 * Returns the unique identifier for the feed item.
130 * The unique identifier for the feed item.
132 public function getGuid();
135 * Sets the unique identifier for the feed item.
137 * @param string $guid
138 * The unique identifier for the feed item.
140 * @return \Drupal\aggregator\ItemInterface
141 * The called feed item entity.
143 public function setGuid($guid);