1 | <?php |
||
26 | class Article implements ArticleInterface, MediaAwareArticleInterface |
||
27 | { |
||
28 | use TranslatableTrait, SoftDeletableTrait; |
||
29 | |||
30 | /** |
||
31 | * @var mixed |
||
32 | */ |
||
33 | protected $id; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $title; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $body; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $slug; |
||
49 | |||
50 | /** |
||
51 | * @var \DateTime |
||
52 | */ |
||
53 | protected $publishedAt; |
||
54 | |||
55 | /** |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $status = ArticleInterface::STATUS_NEW; |
||
59 | |||
60 | /** |
||
61 | * @var RouteInterface |
||
62 | */ |
||
63 | protected $route; |
||
64 | |||
65 | /** |
||
66 | * @var string |
||
67 | */ |
||
68 | protected $templateName; |
||
69 | |||
70 | /** |
||
71 | * @var \DateTime |
||
72 | */ |
||
73 | protected $createdAt; |
||
74 | |||
75 | /** |
||
76 | * @var \DateTime |
||
77 | */ |
||
78 | protected $updatedAt; |
||
79 | |||
80 | /** |
||
81 | * @var \DateTime |
||
82 | */ |
||
83 | protected $publishStartDate; |
||
84 | |||
85 | /** |
||
86 | * @var \DateTime |
||
87 | */ |
||
88 | protected $publishEndDate; |
||
89 | |||
90 | /** |
||
91 | * @var bool |
||
92 | */ |
||
93 | protected $isPublishable; |
||
94 | |||
95 | /** |
||
96 | * @var string |
||
97 | */ |
||
98 | protected $metadata; |
||
99 | |||
100 | /** |
||
101 | * @var Collection |
||
102 | */ |
||
103 | protected $media; |
||
104 | |||
105 | /** |
||
106 | * @var string |
||
107 | */ |
||
108 | protected $lead; |
||
109 | |||
110 | /** |
||
111 | * Article constructor. |
||
112 | */ |
||
113 | 42 | public function __construct() |
|
119 | |||
120 | /** |
||
121 | * {@inheritdoc} |
||
122 | */ |
||
123 | public function setPublishStartDate(\DateTime $startDate = null) |
||
127 | |||
128 | /** |
||
129 | * {@inheritdoc} |
||
130 | */ |
||
131 | 8 | public function getPublishStartDate() |
|
135 | |||
136 | /** |
||
137 | * {@inheritdoc} |
||
138 | */ |
||
139 | public function setPublishEndDate(\DateTime $endDate = null) |
||
143 | |||
144 | /** |
||
145 | * {@inheritdoc} |
||
146 | */ |
||
147 | 8 | public function getPublishEndDate() |
|
151 | |||
152 | /** |
||
153 | * {@inheritdoc} |
||
154 | */ |
||
155 | 8 | public function isPublishable() |
|
159 | |||
160 | /** |
||
161 | * {@inheritdoc} |
||
162 | */ |
||
163 | 42 | public function setPublishable($boolean) |
|
167 | |||
168 | /** |
||
169 | * {@inheritdoc} |
||
170 | */ |
||
171 | 3 | public function isPublished() |
|
175 | |||
176 | /** |
||
177 | * {@inheritdoc} |
||
178 | */ |
||
179 | 16 | public function getCreatedAt() |
|
183 | |||
184 | /** |
||
185 | * {@inheritdoc} |
||
186 | */ |
||
187 | 16 | public function getUpdatedAt() |
|
191 | |||
192 | /** |
||
193 | * {@inheritdoc} |
||
194 | */ |
||
195 | 42 | public function setCreatedAt(\DateTime $createdAt) |
|
199 | |||
200 | /** |
||
201 | * {@inheritdoc} |
||
202 | */ |
||
203 | 8 | public function setUpdatedAt(\DateTime $updatedAt) |
|
207 | |||
208 | /** |
||
209 | * {@inheritdoc} |
||
210 | */ |
||
211 | 37 | public function setRoute(RouteInterface $route = null) |
|
215 | |||
216 | /** |
||
217 | * {@inheritdoc} |
||
218 | */ |
||
219 | 20 | public function getRoute() |
|
223 | |||
224 | /** |
||
225 | * {@inheritdoc} |
||
226 | */ |
||
227 | 28 | public function getId() |
|
231 | |||
232 | /** |
||
233 | * {@inheritdoc} |
||
234 | */ |
||
235 | 18 | public function getBody() |
|
239 | |||
240 | /** |
||
241 | * {@inheritdoc} |
||
242 | */ |
||
243 | 40 | public function setBody($body) |
|
247 | |||
248 | /** |
||
249 | * {@inheritdoc} |
||
250 | */ |
||
251 | public function getMedia() |
||
255 | |||
256 | /** |
||
257 | * {@inheritdoc} |
||
258 | */ |
||
259 | 42 | public function setMedia(Collection $media) |
|
263 | |||
264 | /** |
||
265 | * {@inheritdoc} |
||
266 | */ |
||
267 | 16 | public function getTitle() |
|
271 | |||
272 | /** |
||
273 | * {@inheritdoc} |
||
274 | */ |
||
275 | 41 | public function setTitle($title) |
|
281 | |||
282 | /** |
||
283 | * {@inheritdoc} |
||
284 | */ |
||
285 | 22 | public function getSlug() |
|
289 | |||
290 | /** |
||
291 | * {@inheritdoc} |
||
292 | */ |
||
293 | 41 | public function setSlug($slug) |
|
297 | |||
298 | /** |
||
299 | * {@inheritdoc} |
||
300 | */ |
||
301 | 16 | public function getPublishedAt() |
|
305 | |||
306 | /** |
||
307 | * {@inheritdoc} |
||
308 | */ |
||
309 | 31 | public function setPublishedAt(\DateTime $publishedAt) |
|
313 | |||
314 | /** |
||
315 | * {@inheritdoc} |
||
316 | */ |
||
317 | 12 | public function getStatus() |
|
321 | |||
322 | /** |
||
323 | * {@inheritdoc} |
||
324 | */ |
||
325 | 31 | public function setStatus($status) |
|
329 | |||
330 | /** |
||
331 | * {@inheritdoc} |
||
332 | */ |
||
333 | 12 | public function getTemplateName() |
|
337 | |||
338 | /** |
||
339 | * {@inheritdoc} |
||
340 | */ |
||
341 | 10 | public function setTemplateName($templateName) |
|
345 | |||
346 | /** |
||
347 | * {@inheritdoc} |
||
348 | */ |
||
349 | 28 | public function getMetadata() |
|
353 | |||
354 | /** |
||
355 | * {@inheritdoc} |
||
356 | */ |
||
357 | 3 | public function getMetadataByKey($key) |
|
365 | |||
366 | /** |
||
367 | * {@inheritdoc} |
||
368 | */ |
||
369 | 13 | public function setMetadata(array $metadata) |
|
373 | |||
374 | /** |
||
375 | * {@inheritdoc} |
||
376 | */ |
||
377 | 3 | public function getSubjectType() |
|
381 | |||
382 | /** |
||
383 | * {@inheritdoc} |
||
384 | */ |
||
385 | 16 | public function getLead() |
|
389 | |||
390 | /** |
||
391 | * {@inheritdoc} |
||
392 | */ |
||
393 | 13 | public function setLead($lead) |
|
397 | |||
398 | /** |
||
399 | * Don't serialize values. |
||
400 | * |
||
401 | * @return array |
||
402 | */ |
||
403 | public function __sleep() |
||
409 | } |
||
410 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..