1 | <?php |
||
33 | class News extends Content implements |
||
34 | CategorizableInterface, |
||
35 | MetatagInterface, |
||
36 | PublishableInterface, |
||
37 | RoutableInterface, |
||
38 | SearchableInterface |
||
39 | { |
||
40 | use CategorizableTrait; |
||
41 | use PublishableTrait; |
||
42 | use MetatagTrait; |
||
43 | use RoutableTrait; |
||
44 | use SearchableTrait; |
||
45 | |||
46 | /** |
||
47 | * @var TranslationString $title |
||
48 | */ |
||
49 | private $title; |
||
50 | |||
51 | /** |
||
52 | * @var TranslationString $title |
||
53 | */ |
||
54 | private $subtitle; |
||
55 | |||
56 | /** |
||
57 | * @var TranslationString $content |
||
58 | */ |
||
59 | private $content; |
||
60 | |||
61 | /** |
||
62 | * @var array $contentStructure |
||
63 | */ |
||
64 | private $contentStructure; |
||
|
|||
65 | |||
66 | /** |
||
67 | * @var DateTime $newsDate |
||
68 | */ |
||
69 | private $newsDate; |
||
70 | |||
71 | /** |
||
72 | * @var TranslationString $image |
||
73 | */ |
||
74 | private $image; |
||
75 | |||
76 | /** |
||
77 | * @var Collection $documents |
||
78 | */ |
||
79 | public $documents; |
||
80 | |||
81 | /** |
||
82 | * @var TranslationString $infoUrl |
||
83 | */ |
||
84 | private $infoUrl; |
||
85 | |||
86 | /** |
||
87 | * CategorizableTrait > categoryType() |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | public function categoryType() |
||
95 | |||
96 | /** |
||
97 | * @param mixed $title |
||
98 | * @return TranslationString |
||
99 | */ |
||
100 | public function setTitle($title) |
||
105 | |||
106 | /** |
||
107 | * @return TranslationString |
||
108 | */ |
||
109 | public function title() |
||
113 | |||
114 | /** |
||
115 | * @param mixed $subbtitle |
||
116 | * @return Event Chainable |
||
117 | */ |
||
118 | public function setSubtitle($subtitle) |
||
123 | |||
124 | /** |
||
125 | * @return TranslationString |
||
126 | */ |
||
127 | public function subtitle() |
||
131 | |||
132 | /** |
||
133 | * @param mixed $content |
||
134 | * @return Event Chainable |
||
135 | */ |
||
136 | public function setContent($content) |
||
141 | |||
142 | /** |
||
143 | * @return TranslationString |
||
144 | */ |
||
145 | public function content() |
||
149 | |||
150 | /** |
||
151 | * @param mixed $newsDate The news date. |
||
152 | * @throws InvalidArgumentException If the timestamp is invalid. |
||
153 | * @return ObjectRevision Chainable |
||
154 | */ |
||
155 | public function setNewsDate($newsDate) |
||
172 | |||
173 | /** |
||
174 | * @return DateTime|null |
||
175 | */ |
||
176 | public function newsDate() |
||
180 | |||
181 | public function setInfoUrl($url) |
||
186 | |||
187 | public function infoUrl() |
||
191 | |||
192 | /** |
||
193 | * MetatagTrait > canonical_url |
||
194 | * |
||
195 | * @return string |
||
196 | * @todo |
||
197 | */ |
||
198 | public function canonicalUrl() |
||
202 | |||
203 | /** |
||
204 | * RoutableInterface > handle_route() |
||
205 | * |
||
206 | * @param string $path |
||
207 | * @param RequestInterface $request |
||
208 | * @param ResponseInterface $response |
||
209 | * @throws InvalidArgumentException |
||
210 | * @return callable|null Route dispatcher |
||
211 | */ |
||
212 | public function routeHandler($path, RequestInterface $request, ResponseInterface $response) |
||
229 | |||
230 | } |
||
231 |
This check marks private properties in classes that are never used. Those properties can be removed.