1 | <?php |
||
9 | class FeedItem |
||
10 | { |
||
11 | /** @var string */ |
||
12 | protected $id; |
||
13 | |||
14 | /** @var string */ |
||
15 | protected $title; |
||
16 | |||
17 | /** @var \Carbon\Carbon */ |
||
18 | protected $updated; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $summary; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $link; |
||
25 | |||
26 | /** @var string */ |
||
27 | protected $enclosure; |
||
28 | |||
29 | /** @var int */ |
||
30 | protected $enclosureLength; |
||
31 | |||
32 | /** @var string */ |
||
33 | protected $enclosureType; |
||
34 | |||
35 | /** @var string */ |
||
36 | protected $author; |
||
37 | |||
38 | /** @var string */ |
||
39 | protected $category; |
||
40 | |||
41 | /** @var string */ |
||
42 | protected $imageUrl; |
||
43 | |||
44 | /** @var int */ |
||
45 | protected $imageSize; |
||
46 | |||
47 | public function __construct(array $data = []) |
||
53 | |||
54 | public static function create(array $data = []) |
||
58 | |||
59 | public function id(string $id) |
||
65 | |||
66 | public function title(string $title) |
||
72 | |||
73 | public function updated(Carbon $updated) |
||
79 | |||
80 | public function summary(string $summary) |
||
86 | |||
87 | public function link(string $link) |
||
93 | |||
94 | public function enclosure(string $enclosure) |
||
100 | |||
101 | public function enclosureLength(int $enclosureLength) |
||
107 | |||
108 | public function enclosureType(string $enclosureType) |
||
114 | |||
115 | public function author(string $author) |
||
121 | |||
122 | public function category(string $category) |
||
128 | |||
129 | public function image(string $imageUrl, int $imageSize) |
||
136 | |||
137 | public function validate() |
||
147 | |||
148 | public function __get($key) |
||
156 | |||
157 | public function __isset($key) |
||
161 | } |
||
162 |