1 | <?php |
||
10 | final class Content extends ValueObject |
||
11 | { |
||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | protected $hasLocation; |
||
16 | |||
17 | /** |
||
18 | * @var APIContent |
||
19 | */ |
||
20 | protected $content; |
||
21 | |||
22 | /** |
||
23 | * @var ContentType |
||
24 | */ |
||
25 | protected $contentType; |
||
26 | |||
27 | /** |
||
28 | * @var Collection |
||
29 | */ |
||
30 | protected $firstCollection; |
||
31 | |||
32 | /** |
||
33 | * @var Collection |
||
34 | */ |
||
35 | protected $lastCollection; |
||
36 | |||
37 | /** |
||
38 | * @var int |
||
39 | */ |
||
40 | protected $childCount; |
||
41 | |||
42 | public function __construct( |
||
58 | |||
59 | /** |
||
60 | * @return APIContent |
||
61 | */ |
||
62 | public function getContent(): APIContent |
||
66 | |||
67 | /** |
||
68 | * @return ContentType |
||
69 | */ |
||
70 | public function getContentType(): ContentType |
||
74 | |||
75 | /** |
||
76 | * @return Collection |
||
77 | */ |
||
78 | public function getFirstCollection(): Collection |
||
82 | |||
83 | /** |
||
84 | * @return Collection |
||
85 | */ |
||
86 | public function getLastCollection(): Collection |
||
90 | |||
91 | /** |
||
92 | * @return int |
||
93 | */ |
||
94 | public function getCount(): int |
||
98 | |||
99 | /** |
||
100 | * @return bool |
||
101 | */ |
||
102 | public function hasLocation(): bool |
||
106 | } |
||
107 |