1 | <?php |
||
9 | class Item implements ItemInterface |
||
10 | { |
||
11 | /** @var boolean */ |
||
12 | protected $turbo; |
||
13 | |||
14 | /** @var string */ |
||
15 | protected $title; |
||
16 | |||
17 | /** @var string */ |
||
18 | protected $link; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $category; |
||
22 | |||
23 | /** @var int */ |
||
24 | protected $pubDate; |
||
25 | |||
26 | /** @var string */ |
||
27 | protected $author; |
||
28 | |||
29 | /** @var string */ |
||
30 | protected $fullText; |
||
31 | |||
32 | /** @var string */ |
||
33 | protected $turboSource; |
||
34 | |||
35 | /** @var string */ |
||
36 | protected $turboTopic; |
||
37 | |||
38 | /** @var string */ |
||
39 | protected $turboContent; |
||
40 | |||
41 | /** @var RelatedItemsListInterface */ |
||
42 | protected $relatedItemsList; |
||
43 | |||
44 | 140 | public function __construct($turbo = true) |
|
48 | |||
49 | 42 | public function title($title) |
|
55 | |||
56 | 35 | public function link($link) |
|
61 | |||
62 | 35 | public function category($category) |
|
67 | |||
68 | 42 | public function pubDate($pubDate) |
|
73 | |||
74 | 14 | public function turboSource($turboSource) |
|
79 | |||
80 | 14 | public function turboTopic($turboTopic) |
|
85 | |||
86 | 42 | public function turboContent($turboContent) |
|
91 | |||
92 | 35 | public function author($author) |
|
97 | |||
98 | 14 | public function fullText($fullText) |
|
103 | |||
104 | 7 | public function appendTo(ChannelInterface $channel) |
|
109 | |||
110 | 21 | public function addRelatedItemsList(RelatedItemsListInterface $relatedItemsList) |
|
115 | |||
116 | 35 | public function asXML() |
|
141 | } |
||
142 |