@@ -97,7 +97,7 @@ |
||
97 | 97 | * - reflClass (ReflectionClass) |
98 | 98 | * - reflFields (ReflectionProperty array) |
99 | 99 | * |
100 | - * @return array The names of all the fields that should be serialized. |
|
100 | + * @return string[] The names of all the fields that should be serialized. |
|
101 | 101 | */ |
102 | 102 | public function __sleep() |
103 | 103 | { |
@@ -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); |
@@ -983,7 +983,7 @@ discard block |
||
983 | 983 | * @see Expr::mod() |
984 | 984 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
985 | 985 | * @param float|int $divisor |
986 | - * @param float|int $remainder |
|
986 | + * @param integer $remainder |
|
987 | 987 | */ |
988 | 988 | public function mod($divisor, $remainder = 0): self |
989 | 989 | { |
@@ -1137,7 +1137,7 @@ discard block |
||
1137 | 1137 | * If a custom callable is used, its signature should conform to the default |
1138 | 1138 | * Closure defined in {@link ReferencePrimer::__construct()}. |
1139 | 1139 | * |
1140 | - * @param bool|callable $primer |
|
1140 | + * @param boolean $primer |
|
1141 | 1141 | * @throws \InvalidArgumentException If $primer is not boolean or callable. |
1142 | 1142 | */ |
1143 | 1143 | public function prime($primer = true): self |
@@ -1476,7 +1476,7 @@ discard block |
||
1476 | 1476 | * field name (key) and order (value) pairs. |
1477 | 1477 | * |
1478 | 1478 | * @param array|string $fieldName Field name or array of field/order pairs |
1479 | - * @param int|string $order Field order (if one field is specified) |
|
1479 | + * @param integer $order Field order (if one field is specified) |
|
1480 | 1480 | */ |
1481 | 1481 | public function sort($fieldName, $order = 1): self |
1482 | 1482 | { |
@@ -751,7 +751,7 @@ |
||
751 | 751 | * @see Builder::mod() |
752 | 752 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
753 | 753 | * @param float|int $divisor |
754 | - * @param float|int $remainder |
|
754 | + * @param integer $remainder |
|
755 | 755 | */ |
756 | 756 | public function mod($divisor, $remainder = 0): self |
757 | 757 | { |
@@ -153,7 +153,6 @@ |
||
153 | 153 | * Finds documents by a set of criteria. |
154 | 154 | * |
155 | 155 | * @param int|null $limit |
156 | - * @param int|null $offset |
|
157 | 156 | */ |
158 | 157 | public function findBy(array $criteria, ?array $sort = null, $limit = null, $skip = null): array |
159 | 158 | { |
@@ -2131,6 +2131,7 @@ |
||
2131 | 2131 | |
2132 | 2132 | /** |
2133 | 2133 | * Clears the UnitOfWork. |
2134 | + * @param string $documentName |
|
2134 | 2135 | */ |
2135 | 2136 | public function clear(?string $documentName = null): void |
2136 | 2137 | { |
@@ -1027,7 +1027,7 @@ discard block |
||
1027 | 1027 | * @see https://docs.mongodb.com/manual/reference/operator/aggregation/range/ |
1028 | 1028 | * @param mixed|self $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer. |
1029 | 1029 | * @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. |
1030 | - * @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. |
|
1030 | + * @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. |
|
1031 | 1031 | */ |
1032 | 1032 | public function range($start, $end, $step = 1): self |
1033 | 1033 | { |
@@ -1524,6 +1524,7 @@ discard block |
||
1524 | 1524 | * Ensure that a current field has been set. |
1525 | 1525 | * |
1526 | 1526 | * @throws \LogicException If a current field has not been set. |
1527 | + * @param string $method |
|
1527 | 1528 | */ |
1528 | 1529 | private function requiresCurrentField(?string $method = null): void |
1529 | 1530 | { |
@@ -1534,6 +1535,7 @@ discard block |
||
1534 | 1535 | |
1535 | 1536 | /** |
1536 | 1537 | * @throws \BadMethodCallException If there is no current switch operator. |
1538 | + * @param string $method |
|
1537 | 1539 | */ |
1538 | 1540 | private function requiresSwitchStatement(?string $method = null): void |
1539 | 1541 | { |
@@ -81,6 +81,9 @@ |
||
81 | 81 | */ |
82 | 82 | abstract protected function getStageName(): string; |
83 | 83 | |
84 | + /** |
|
85 | + * @param Expr $expression |
|
86 | + */ |
|
84 | 87 | private function convertExpression($expression) |
85 | 88 | { |
86 | 89 | if (is_array($expression)) { |
@@ -280,6 +280,9 @@ |
||
280 | 280 | return Type::convertPHPToDatabaseValue(Expr::convertExpression($expression)); |
281 | 281 | } |
282 | 282 | |
283 | + /** |
|
284 | + * @param string $fieldName |
|
285 | + */ |
|
283 | 286 | private function convertTargetFieldName($fieldName) |
284 | 287 | { |
285 | 288 | if (is_array($fieldName)) { |