@@ -150,7 +150,7 @@ |
||
150 | 150 | * |
151 | 151 | * @param int $valueTypes The accepted values, as a bit field of Specifications::TYPE_* constants |
152 | 152 | * |
153 | - * @return callable |
|
153 | + * @return \Closure |
|
154 | 154 | */ |
155 | 155 | private function getValueTypeCheckCallback(int $valueTypes): callable |
156 | 156 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * |
21 | 21 | * Will match of the given criterion doesn't match |
22 | 22 | * |
23 | - * @param \eZ\Publish\API\Repository\Values\Content\Query\Criterion[] $criteria One criterion, as an array |
|
23 | + * @param \eZ\Publish\API\Repository\Values\Content\Query\Criterion[] $criterion One criterion, as an array |
|
24 | 24 | * |
25 | 25 | * @throws \InvalidArgumentException if more than one criterion is given in the array parameter |
26 | 26 | */ |
@@ -27,16 +27,19 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Begin a transaction. |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function beginTransaction(); |
32 | 33 | |
33 | 34 | /** |
34 | 35 | * Commit a transaction. |
36 | + * @return void |
|
35 | 37 | */ |
36 | 38 | public function commit(); |
37 | 39 | |
38 | 40 | /** |
39 | 41 | * Rollback a transaction. |
42 | + * @return void |
|
40 | 43 | */ |
41 | 44 | public function rollBack(); |
42 | 45 | |
@@ -60,6 +63,7 @@ discard block |
||
60 | 63 | * Execute a query against the database. |
61 | 64 | * |
62 | 65 | * @param string $query |
66 | + * @return void |
|
63 | 67 | */ |
64 | 68 | public function exec($query); |
65 | 69 | |
@@ -68,7 +72,7 @@ discard block |
||
68 | 72 | * |
69 | 73 | * Statements are ducktyped, but need to work like PDOStatement. |
70 | 74 | * |
71 | - * @return object |
|
75 | + * @return \Doctrine\DBAL\Driver\Statement |
|
72 | 76 | */ |
73 | 77 | public function prepare($query); |
74 | 78 | |
@@ -138,8 +142,9 @@ discard block |
||
138 | 142 | * |
139 | 143 | * This is an optimization and works around the ezcDB implementation. |
140 | 144 | * |
141 | - * @param string $identifier |
|
142 | 145 | * |
146 | + * @param string $name |
|
147 | + * @param string $alias |
|
143 | 148 | * @return string |
144 | 149 | */ |
145 | 150 | public function alias($name, $alias); |
@@ -185,7 +190,7 @@ discard block |
||
185 | 190 | /** |
186 | 191 | * Returns underlying connection (e.g. Doctrine connection object). |
187 | 192 | * |
188 | - * @return mixed |
|
193 | + * @return \Doctrine\DBAL\Connection |
|
189 | 194 | */ |
190 | 195 | public function getConnection(); |
191 | 196 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * @param NodeDefinition $node |
60 | 60 | * @param string $name |
61 | 61 | * @param string $info block info line |
62 | - * @param ConfigurationFactory[]|ArrayObject $factories |
|
62 | + * @param ArrayObject $factories |
|
63 | 63 | */ |
64 | 64 | private function addHandlersSection(NodeDefinition $node, $name, $info, ArrayObject $factories) |
65 | 65 | { |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
310 | 310 | * @throws \eZ\Publish\API\Repository\Exceptions\ForbiddenException |
311 | 311 | * |
312 | - * @param mixed $locationId |
|
312 | + * @param integer $locationId |
|
313 | 313 | * @param string $path |
314 | 314 | * @param bool $forwarding |
315 | 315 | * @param string $languageCode |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | * @param string $text |
467 | 467 | * @param string $textMD5 |
468 | 468 | * |
469 | - * @return mixed |
|
469 | + * @return integer |
|
470 | 470 | */ |
471 | 471 | protected function insertNopEntry($parentId, $text, $textMD5) |
472 | 472 | { |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | * |
487 | 487 | * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException |
488 | 488 | * |
489 | - * @param mixed $locationId |
|
489 | + * @param integer $locationId |
|
490 | 490 | * @param bool $custom if true the user generated aliases are listed otherwise the autogenerated |
491 | 491 | * |
492 | 492 | * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
@@ -622,9 +622,9 @@ discard block |
||
622 | 622 | * |
623 | 623 | * This method triggers the change of the autogenerated aliases. |
624 | 624 | * |
625 | - * @param mixed $locationId |
|
626 | - * @param mixed $oldParentId |
|
627 | - * @param mixed $newParentId |
|
625 | + * @param integer $locationId |
|
626 | + * @param integer $oldParentId |
|
627 | + * @param integer $newParentId |
|
628 | 628 | */ |
629 | 629 | public function locationMoved($locationId, $oldParentId, $newParentId) |
630 | 630 | { |
@@ -652,9 +652,9 @@ discard block |
||
652 | 652 | * |
653 | 653 | * This method triggers the creation of the autogenerated aliases for the copied locations |
654 | 654 | * |
655 | - * @param mixed $locationId |
|
656 | - * @param mixed $newLocationId |
|
657 | - * @param mixed $newParentId |
|
655 | + * @param integer $locationId |
|
656 | + * @param integer $newLocationId |
|
657 | + * @param integer $newParentId |
|
658 | 658 | */ |
659 | 659 | public function locationCopied($locationId, $newLocationId, $newParentId) |
660 | 660 | { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
57 | 57 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException |
58 | 58 | * |
59 | - * @param mixed $contentId |
|
59 | + * @param integer $contentId |
|
60 | 60 | * |
61 | 61 | * @return \eZ\Publish\API\Repository\Values\Content\Location|null |
62 | 62 | */ |
@@ -60,7 +60,7 @@ |
||
60 | 60 | /** |
61 | 61 | * Get PDOStatement to fetch metadata about content objects to be indexed. |
62 | 62 | * |
63 | - * @param array $fields Select fields |
|
63 | + * @param string[] $fields Select fields |
|
64 | 64 | * |
65 | 65 | * @return \PDOStatement |
66 | 66 | */ |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @param string $operator |
193 | 193 | * @param string $value |
194 | 194 | * |
195 | - * @return callback |
|
195 | + * @return \Closure |
|
196 | 196 | */ |
197 | 197 | protected function getTransposeClosure($operator, $value) |
198 | 198 | { |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @param string $char |
214 | 214 | * |
215 | - * @return callback |
|
215 | + * @return \Closure |
|
216 | 216 | */ |
217 | 217 | protected function compileTargetCharacter($char) |
218 | 218 | { |
@@ -276,6 +276,7 @@ discard block |
||
276 | 276 | * Converts a hexadecimal string to a decimal number. |
277 | 277 | * |
278 | 278 | * In comparison to standard hexdec function it will ignore any non-hexadecimal characters |
279 | + * @param string $value |
|
279 | 280 | */ |
280 | 281 | private function hexdec(?string $value): int |
281 | 282 | { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * Map field value to a proper search engine representation. |
34 | 34 | * |
35 | - * @return mixed |
|
35 | + * @return string |
|
36 | 36 | */ |
37 | 37 | public function map(Field $field) |
38 | 38 | { |