123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <?php
- namespace Drupal\aggregator;
- use Drupal\Core\Entity\ContentEntityInterface;
- /**
- * Provides an interface defining an aggregator item entity.
- */
- interface ItemInterface extends ContentEntityInterface {
- /**
- * Returns the feed id of aggregator item.
- *
- * @return int
- * The feed id.
- */
- public function getFeedId();
- /**
- * Sets the feed id of aggregator item.
- *
- * @param int $fid
- * The feed id.
- *
- * @return \Drupal\aggregator\ItemInterface
- * The called feed item entity.
- */
- public function setFeedId($fid);
- /**
- * Returns the title of the feed item.
- *
- * @return string
- * The title of the feed item.
- */
- public function getTitle();
- /**
- * Sets the title of the feed item.
- *
- * @param string $title
- * The title of the feed item.
- *
- * @return \Drupal\aggregator\ItemInterface
- * The called feed item entity.
- */
- public function setTitle($title);
- /**
- * Returns the link to the feed item.
- *
- * @return string
- * The link to the feed item.
- */
- public function getLink();
- /**
- * Sets the link to the feed item.
- *
- * @param string $link
- * The link to the feed item.
- *
- * @return \Drupal\aggregator\ItemInterface
- * The called feed item entity.
- */
- public function setLink($link);
- /**
- * Returns the author of the feed item.
- *
- * @return string
- * The author of the feed item.
- */
- public function getAuthor();
- /**
- * Sets the author of the feed item.
- *
- * @param string $author
- * The author name of the feed item.
- *
- * @return \Drupal\aggregator\ItemInterface
- * The called feed item entity.
- */
- public function setAuthor($author);
- /**
- * Returns the body of the feed item.
- *
- * @return string
- * The body of the feed item.
- */
- public function getDescription();
- /**
- * Sets the body of the feed item.
- *
- * @param string $description
- * The body of the feed item.
- *
- * @return \Drupal\aggregator\ItemInterface
- * The called feed item entity.
- */
- public function setDescription($description);
- /**
- * Returns the posted date of the feed item, as a Unix timestamp.
- *
- * @return int
- * The posted date of the feed item, as a Unix timestamp.
- */
- public function getPostedTime();
- /**
- * Sets the posted date of the feed item, as a Unix timestamp.
- *
- * @param int $timestamp
- * The posted date of the feed item, as a Unix timestamp.
- *
- * @return \Drupal\aggregator\ItemInterface
- * The called feed item entity.
- */
- public function setPostedTime($timestamp);
- /**
- * Returns the unique identifier for the feed item.
- *
- * @return string
- * The unique identifier for the feed item.
- */
- public function getGuid();
- /**
- * Sets the unique identifier for the feed item.
- *
- * @param string $guid
- * The unique identifier for the feed item.
- *
- * @return \Drupal\aggregator\ItemInterface
- * The called feed item entity.
- */
- public function setGuid($guid);
- }
|