@@ -8,83 +8,83 @@ |
||
| 8 | 8 | interface ItemInterface |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | - /** |
|
| 12 | - * Set item title |
|
| 13 | - * @param string $title |
|
| 14 | - * @return $this |
|
| 15 | - */ |
|
| 16 | - public function title($title); |
|
| 11 | + /** |
|
| 12 | + * Set item title |
|
| 13 | + * @param string $title |
|
| 14 | + * @return $this |
|
| 15 | + */ |
|
| 16 | + public function title($title); |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Set item URL |
|
| 20 | - * @param string $url |
|
| 21 | - * @return $this |
|
| 22 | - */ |
|
| 23 | - public function url($url); |
|
| 18 | + /** |
|
| 19 | + * Set item URL |
|
| 20 | + * @param string $url |
|
| 21 | + * @return $this |
|
| 22 | + */ |
|
| 23 | + public function url($url); |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * Set author name for article |
|
| 27 | - * |
|
| 28 | - * @param $creator |
|
| 29 | - * @return $this |
|
| 30 | - */ |
|
| 31 | - public function creator($creator); |
|
| 25 | + /** |
|
| 26 | + * Set author name for article |
|
| 27 | + * |
|
| 28 | + * @param $creator |
|
| 29 | + * @return $this |
|
| 30 | + */ |
|
| 31 | + public function creator($creator); |
|
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * Set item description |
|
| 35 | - * @param string $description |
|
| 36 | - * @return $this |
|
| 37 | - */ |
|
| 38 | - public function description($description); |
|
| 33 | + /** |
|
| 34 | + * Set item description |
|
| 35 | + * @param string $description |
|
| 36 | + * @return $this |
|
| 37 | + */ |
|
| 38 | + public function description($description); |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * @param $content |
|
| 42 | - * @return $this |
|
| 43 | - */ |
|
| 44 | - public function content($content); |
|
| 40 | + /** |
|
| 41 | + * @param $content |
|
| 42 | + * @return $this |
|
| 43 | + */ |
|
| 44 | + public function content($content); |
|
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * Set item category |
|
| 48 | - * @param string $name Category name |
|
| 49 | - * @param string $domain Category URL |
|
| 50 | - * @return $this |
|
| 51 | - */ |
|
| 52 | - public function category($name, $domain = null); |
|
| 46 | + /** |
|
| 47 | + * Set item category |
|
| 48 | + * @param string $name Category name |
|
| 49 | + * @param string $domain Category URL |
|
| 50 | + * @return $this |
|
| 51 | + */ |
|
| 52 | + public function category($name, $domain = null); |
|
| 53 | 53 | |
| 54 | - /** |
|
| 55 | - * Set GUID |
|
| 56 | - * @param string $guid |
|
| 57 | - * @param bool $isPermalink |
|
| 58 | - * @return $this |
|
| 59 | - */ |
|
| 60 | - public function guid($guid, $isPermalink = false); |
|
| 54 | + /** |
|
| 55 | + * Set GUID |
|
| 56 | + * @param string $guid |
|
| 57 | + * @param bool $isPermalink |
|
| 58 | + * @return $this |
|
| 59 | + */ |
|
| 60 | + public function guid($guid, $isPermalink = false); |
|
| 61 | 61 | |
| 62 | - /** |
|
| 63 | - * Set published date |
|
| 64 | - * @param int $pubDate Unix timestamp |
|
| 65 | - * @return $this |
|
| 66 | - */ |
|
| 67 | - public function pubDate($pubDate); |
|
| 62 | + /** |
|
| 63 | + * Set published date |
|
| 64 | + * @param int $pubDate Unix timestamp |
|
| 65 | + * @return $this |
|
| 66 | + */ |
|
| 67 | + public function pubDate($pubDate); |
|
| 68 | 68 | |
| 69 | - /** |
|
| 70 | - * Set enclosure |
|
| 71 | - * @param string $url Url to media file |
|
| 72 | - * @param int $length Length in bytes of the media file |
|
| 73 | - * @param string $type Media type, default is audio/mpeg |
|
| 74 | - * @return $this |
|
| 75 | - */ |
|
| 76 | - public function enclosure($url, $length = 0, $type = 'audio/mpeg'); |
|
| 69 | + /** |
|
| 70 | + * Set enclosure |
|
| 71 | + * @param string $url Url to media file |
|
| 72 | + * @param int $length Length in bytes of the media file |
|
| 73 | + * @param string $type Media type, default is audio/mpeg |
|
| 74 | + * @return $this |
|
| 75 | + */ |
|
| 76 | + public function enclosure($url, $length = 0, $type = 'audio/mpeg'); |
|
| 77 | 77 | |
| 78 | - /** |
|
| 79 | - * Append item to the channel |
|
| 80 | - * @param ChannelInterface $channel |
|
| 81 | - * @return $this |
|
| 82 | - */ |
|
| 83 | - public function appendTo(ChannelInterface $channel); |
|
| 78 | + /** |
|
| 79 | + * Append item to the channel |
|
| 80 | + * @param ChannelInterface $channel |
|
| 81 | + * @return $this |
|
| 82 | + */ |
|
| 83 | + public function appendTo(ChannelInterface $channel); |
|
| 84 | 84 | |
| 85 | - /** |
|
| 86 | - * Return XML object |
|
| 87 | - * @return SimpleXMLElement |
|
| 88 | - */ |
|
| 89 | - public function asXML(); |
|
| 85 | + /** |
|
| 86 | + * Return XML object |
|
| 87 | + * @return SimpleXMLElement |
|
| 88 | + */ |
|
| 89 | + public function asXML(); |
|
| 90 | 90 | } |