annotate core/modules/aggregator/src/ItemInterface.php @ 19:fa3358dc1485 tip

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