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 | 80 | public function __construct(bool $turbo = true) |
|
48 | |||
49 | 24 | public function title(string $title): ItemInterface |
|
55 | |||
56 | 20 | public function link(string $link): ItemInterface |
|
61 | |||
62 | 20 | public function category(string $category): ItemInterface |
|
67 | |||
68 | 24 | public function pubDate(int $pubDate): ItemInterface |
|
73 | |||
74 | 8 | public function turboSource(string $turboSource): ItemInterface |
|
79 | |||
80 | 8 | public function turboTopic(string $turboTopic): ItemInterface |
|
85 | |||
86 | 24 | public function turboContent(string $turboContent): ItemInterface |
|
91 | |||
92 | 20 | public function author(string $author): ItemInterface |
|
97 | |||
98 | 8 | public function fullText(string $fullText): ItemInterface |
|
103 | |||
104 | 4 | public function appendTo(ChannelInterface $channel): ItemInterface |
|
109 | |||
110 | 12 | public function addRelatedItemsList(RelatedItemsListInterface $relatedItemsList): ItemInterface |
|
115 | |||
116 | 20 | public function asXML(): SimpleXMLElement |
|
142 | } |
||
143 |