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