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( |
||
57 | |||
58 | /** |
||
59 | * @return APIContent |
||
60 | */ |
||
61 | public function getContent(): APIContent |
||
65 | |||
66 | /** |
||
67 | * @return ContentType |
||
68 | */ |
||
69 | public function getContentType(): ContentType |
||
73 | |||
74 | /** |
||
75 | * @return Collection |
||
76 | */ |
||
77 | public function getFirstCollection(): Collection |
||
81 | |||
82 | /** |
||
83 | * @return Collection |
||
84 | */ |
||
85 | public function getLastCollection(): Collection |
||
89 | |||
90 | /** |
||
91 | * @return int |
||
92 | */ |
||
93 | public function getCount(): int |
||
97 | |||
98 | /** |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function hasLocation(): bool |
||
105 | } |
||
106 |