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 | public function __construct(array $data = []) |
||
47 | |||
48 | public static function create(array $data = []) |
||
52 | |||
53 | public function id(string $id) |
||
59 | |||
60 | public function title(string $title) |
||
66 | |||
67 | public function updated(Carbon $updated) |
||
73 | |||
74 | public function summary(string $summary) |
||
80 | |||
81 | public function link(string $link) |
||
87 | |||
88 | public function enclosure(string $enclosure) |
||
94 | |||
95 | public function enclosureLength(int $enclosureLength) |
||
101 | |||
102 | public function enclosureType(string $enclosureType) |
||
108 | |||
109 | public function author(string $author) |
||
115 | |||
116 | public function category(string $category) |
||
122 | |||
123 | public function validate() |
||
133 | |||
134 | public function __get($key) |
||
142 | |||
143 | public function __isset($key) |
||
147 | } |
||
148 |