@@ -90,6 +90,9 @@ |
||
90 | 90 | */ |
91 | 91 | abstract protected function getStageName(); |
92 | 92 | |
93 | + /** |
|
94 | + * @param Expr $expression |
|
95 | + */ |
|
93 | 96 | private function convertExpression($expression) |
94 | 97 | { |
95 | 98 | if (is_array($expression)) { |
@@ -46,6 +46,7 @@ |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * {@inheritdoc} |
49 | + * @param string $collection |
|
49 | 50 | */ |
50 | 51 | public function out($collection) |
51 | 52 | { |
@@ -1105,7 +1105,7 @@ |
||
1105 | 1105 | * @see https://docs.mongodb.com/manual/reference/operator/aggregation/range/ |
1106 | 1106 | * @param mixed|self $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer. |
1107 | 1107 | * @param mixed|self $end An integer that specifies the exclusive upper limit of the sequence. Can be any valid expression that resolves to an integer. |
1108 | - * @param mixed|self $step Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1. |
|
1108 | + * @param integer $step Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1. |
|
1109 | 1109 | * @return $this |
1110 | 1110 | */ |
1111 | 1111 | public function range($start, $end, $step = 1) |
@@ -328,6 +328,9 @@ discard block |
||
328 | 328 | return Type::convertPHPToDatabaseValue(Expr::convertExpression($expression)); |
329 | 329 | } |
330 | 330 | |
331 | + /** |
|
332 | + * @param string $fieldName |
|
333 | + */ |
|
331 | 334 | private function convertTargetFieldName($fieldName) |
332 | 335 | { |
333 | 336 | if (is_array($fieldName)) { |
@@ -349,6 +352,9 @@ discard block |
||
349 | 352 | return $this->dm->getUnitOfWork()->getDocumentPersister($class->name); |
350 | 353 | } |
351 | 354 | |
355 | + /** |
|
356 | + * @param string $fieldName |
|
357 | + */ |
|
352 | 358 | private function getReferencedFieldName($fieldName, array $mapping) |
353 | 359 | { |
354 | 360 | if (! $mapping['isOwningSide']) { |
@@ -484,7 +484,7 @@ |
||
484 | 484 | * @see Expr::mod() |
485 | 485 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
486 | 486 | * @param float|int $divisor |
487 | - * @param float|int $remainder |
|
487 | + * @param integer $remainder |
|
488 | 488 | * @return $this |
489 | 489 | */ |
490 | 490 | public function mod($divisor, $remainder = 0) |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | * |
408 | 408 | * @see http://docs.mongodb.org/manual/meta/aggregation-quick-reference/#aggregation-expressions |
409 | 409 | * @see Expr::expression |
410 | - * @param mixed|Expr $value |
|
410 | + * @param boolean $value |
|
411 | 411 | * @return $this |
412 | 412 | */ |
413 | 413 | public function expression($value) |
@@ -1016,7 +1016,7 @@ discard block |
||
1016 | 1016 | * @see Expr::range |
1017 | 1017 | * @param mixed|Expr $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer. |
1018 | 1018 | * @param mixed|Expr $end An integer that specifies the exclusive upper limit of the sequence. Can be any valid expression that resolves to an integer. |
1019 | - * @param mixed|Expr $step Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1. |
|
1019 | + * @param integer $step Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1. |
|
1020 | 1020 | * @return $this |
1021 | 1021 | */ |
1022 | 1022 | public function range($start, $end, $step = 1) |
@@ -170,6 +170,10 @@ |
||
170 | 170 | return $this; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param string $fieldName |
|
175 | + * @param ClassMetadata $class |
|
176 | + */ |
|
173 | 177 | protected function prepareFieldName($fieldName, ?ClassMetadata $class = null) |
174 | 178 | { |
175 | 179 | if (! $class) { |
@@ -228,7 +228,7 @@ |
||
228 | 228 | * Get the types array map which holds all registered types and the corresponding |
229 | 229 | * type class |
230 | 230 | * |
231 | - * @return array $typesMap |
|
231 | + * @return string[] $typesMap |
|
232 | 232 | */ |
233 | 233 | public static function getTypesMap() |
234 | 234 | { |
@@ -21,6 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @param mixed $id File ID |
23 | 23 | * @param resource $destination Writable Stream |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function downloadToStream($id, $destination): void; |
26 | 27 | |
@@ -35,7 +36,6 @@ discard block |
||
35 | 36 | * Writes the contents of a readable stream to a GridFS file. |
36 | 37 | * |
37 | 38 | * @param resource $source Readable stream |
38 | - * @param object|null $metadata |
|
39 | 39 | * @return object The newly created GridFS file |
40 | 40 | */ |
41 | 41 | public function uploadFromStream(string $filename, $source, ?UploadOptions $uploadOptions = null); |
@@ -43,9 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Writes the contents of a file to a GridFS file. |
45 | 45 | * |
46 | - * @param string $path |
|
47 | 46 | * @param string|null $filename The filename to upload the file with. If no filename is provided, the name of the source file will be used. |
48 | - * @param object|null $metadata |
|
49 | 47 | * @return object The newly created GridFS file |
50 | 48 | */ |
51 | 49 | public function uploadFromFile(string $source, ?string $filename = null, ?UploadOptions $uploadOptions = null); |