@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @return String |
|
27 | + * @return string |
|
28 | 28 | */ |
29 | 29 | public function getDescription() |
30 | 30 | { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | /** |
50 | 50 | * @param array $data |
51 | - * @return mixed The object instance |
|
51 | + * @return AbstractImageEvent The object instance |
|
52 | 52 | */ |
53 | 53 | public static function deserialize(array $data) |
54 | 54 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * @param string $id |
37 | 37 | * A string uniquely identifying an event. |
38 | 38 | * |
39 | - * @return array |
|
39 | + * @return string |
|
40 | 40 | * An event array. |
41 | 41 | * |
42 | 42 | * @throws EventNotFoundException if an event can not be found for the given id |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @param $id |
27 | - * @return EventEvent |
|
27 | + * @return EventProjectedToJSONLD |
|
28 | 28 | */ |
29 | 29 | public function createEvent($id) |
30 | 30 | { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param mixed $json |
|
73 | + * @param stdClass $json |
|
74 | 74 | * |
75 | 75 | * @throws ValidationException |
76 | 76 | */ |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param mixed $json |
|
73 | + * @param stdClass $json |
|
74 | 74 | * |
75 | 75 | * @throws ValidationException |
76 | 76 | */ |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | /** |
111 | 111 | * @param \CultureFeed_Cdb_Item_Base $udb2Item |
112 | 112 | * |
113 | - * @return null|string |
|
113 | + * @return string |
|
114 | 114 | */ |
115 | 115 | protected function resolveUserId(\CultureFeed_Cdb_Item_Base $udb2Item) |
116 | 116 | { |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | } |
390 | 390 | |
391 | 391 | /** |
392 | - * @param $dateString |
|
392 | + * @param string $dateString |
|
393 | 393 | * A UDB2 formatted date string |
394 | 394 | * |
395 | 395 | * @return DateTimeInterface |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
189 | - * @param $id |
|
189 | + * @param string $id |
|
190 | 190 | * @param EntityType $entityType |
191 | 191 | * @return bool |
192 | 192 | */ |
@@ -316,6 +316,9 @@ discard block |
||
316 | 316 | ); |
317 | 317 | } |
318 | 318 | |
319 | + /** |
|
320 | + * @param string $userId |
|
321 | + */ |
|
319 | 322 | private function getPagedDashboardItems( |
320 | 323 | $userId, |
321 | 324 | Natural $limit, |
@@ -340,6 +343,10 @@ discard block |
||
340 | 343 | |
341 | 344 | $results = $queryBuilder->execute(); |
342 | 345 | $offerIdentifierArray = array_map( |
346 | + |
|
347 | + /** |
|
348 | + * @param string $resultRow |
|
349 | + */ |
|
343 | 350 | function ($resultRow) { |
344 | 351 | $offerIdentifier = new IriOfferIdentifier( |
345 | 352 | $resultRow['entity_iri'], |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | /** |
390 | 390 | * Return the media of an event if it already exists. |
391 | 391 | * |
392 | - * @param JsonDocument $document The JsonDocument. |
|
392 | + * @param \CultuurNet\UDB3\ReadModel\JsonDocument $document The JsonDocument. |
|
393 | 393 | * |
394 | 394 | * @return array |
395 | 395 | * A list of media objects. |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | /** |
412 | 412 | * Return the location of an event if it already exists. |
413 | 413 | * |
414 | - * @param JsonDocument $document The JsonDocument. |
|
414 | + * @param \CultuurNet\UDB3\ReadModel\JsonDocument $document The JsonDocument. |
|
415 | 415 | * |
416 | 416 | * @return array|null |
417 | 417 | * The location |
@@ -686,6 +686,9 @@ discard block |
||
686 | 686 | |
687 | 687 | } |
688 | 688 | |
689 | + /** |
|
690 | + * @param string $eventId |
|
691 | + */ |
|
689 | 692 | private function generateSameAs($eventId, $name) |
690 | 693 | { |
691 | 694 | $eventSlug = $this->slugger->slug($name); |