@@ -1029,7 +1029,7 @@ discard block |
||
| 1029 | 1029 | * @see https://docs.mongodb.com/manual/reference/operator/aggregation/range/ |
| 1030 | 1030 | * @param mixed|self $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer. |
| 1031 | 1031 | * @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. |
| 1032 | - * @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. |
|
| 1032 | + * @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. |
|
| 1033 | 1033 | */ |
| 1034 | 1034 | public function range($start, $end, $step = 1) : self |
| 1035 | 1035 | { |
@@ -1523,6 +1523,7 @@ discard block |
||
| 1523 | 1523 | * Ensure that a current field has been set. |
| 1524 | 1524 | * |
| 1525 | 1525 | * @throws LogicException If a current field has not been set. |
| 1526 | + * @param string $method |
|
| 1526 | 1527 | */ |
| 1527 | 1528 | private function requiresCurrentField(?string $method = null) : void |
| 1528 | 1529 | { |
@@ -1533,6 +1534,7 @@ discard block |
||
| 1533 | 1534 | |
| 1534 | 1535 | /** |
| 1535 | 1536 | * @throws BadMethodCallException If there is no current switch operator. |
| 1537 | + * @param string $method |
|
| 1536 | 1538 | */ |
| 1537 | 1539 | private function requiresSwitchStatement(?string $method = null) : void |
| 1538 | 1540 | { |
@@ -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)) { |
@@ -438,7 +438,7 @@ |
||
| 438 | 438 | * @see Expr::mod() |
| 439 | 439 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
| 440 | 440 | * @param float|int $divisor |
| 441 | - * @param float|int $remainder |
|
| 441 | + * @param integer $remainder |
|
| 442 | 442 | */ |
| 443 | 443 | public function mod($divisor, $remainder = 0) : self |
| 444 | 444 | { |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | * |
| 377 | 377 | * @see http://docs.mongodb.org/manual/meta/aggregation-quick-reference/#aggregation-expressions |
| 378 | 378 | * @see Expr::expression |
| 379 | - * @param mixed|Expr $value |
|
| 379 | + * @param boolean $value |
|
| 380 | 380 | */ |
| 381 | 381 | public function expression($value) |
| 382 | 382 | { |
@@ -944,7 +944,7 @@ discard block |
||
| 944 | 944 | * @see Expr::range |
| 945 | 945 | * @param mixed|Expr $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer. |
| 946 | 946 | * @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. |
| 947 | - * @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. |
|
| 947 | + * @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. |
|
| 948 | 948 | */ |
| 949 | 949 | public function range($start, $end, $step = 1) : self |
| 950 | 950 | { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @see http://php.net/iterator.current |
| 42 | - * @return mixed |
|
| 42 | + * @return \Doctrine\ODM\MongoDB\object|null |
|
| 43 | 43 | */ |
| 44 | 44 | public function current() |
| 45 | 45 | { |
@@ -985,7 +985,7 @@ discard block |
||
| 985 | 985 | * @see Expr::mod() |
| 986 | 986 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
| 987 | 987 | * @param float|int $divisor |
| 988 | - * @param float|int $remainder |
|
| 988 | + * @param integer $remainder |
|
| 989 | 989 | */ |
| 990 | 990 | public function mod($divisor, $remainder = 0) : self |
| 991 | 991 | { |
@@ -1139,7 +1139,7 @@ discard block |
||
| 1139 | 1139 | * If a custom callable is used, its signature should conform to the default |
| 1140 | 1140 | * Closure defined in {@link ReferencePrimer::__construct()}. |
| 1141 | 1141 | * |
| 1142 | - * @param bool|callable $primer |
|
| 1142 | + * @param boolean $primer |
|
| 1143 | 1143 | * @throws InvalidArgumentException If $primer is not boolean or callable. |
| 1144 | 1144 | */ |
| 1145 | 1145 | public function prime($primer = true) : self |
@@ -1478,7 +1478,7 @@ discard block |
||
| 1478 | 1478 | * field name (key) and order (value) pairs. |
| 1479 | 1479 | * |
| 1480 | 1480 | * @param array|string $fieldName Field name or array of field/order pairs |
| 1481 | - * @param int|string $order Field order (if one field is specified) |
|
| 1481 | + * @param integer $order Field order (if one field is specified) |
|
| 1482 | 1482 | */ |
| 1483 | 1483 | public function sort($fieldName, $order = 1) : self |
| 1484 | 1484 | { |
@@ -753,7 +753,7 @@ |
||
| 753 | 753 | * @see Builder::mod() |
| 754 | 754 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
| 755 | 755 | * @param float|int $divisor |
| 756 | - * @param float|int $remainder |
|
| 756 | + * @param integer $remainder |
|
| 757 | 757 | */ |
| 758 | 758 | public function mod($divisor, $remainder = 0) : self |
| 759 | 759 | { |
@@ -151,7 +151,6 @@ |
||
| 151 | 151 | * Finds documents by a set of criteria. |
| 152 | 152 | * |
| 153 | 153 | * @param int|null $limit |
| 154 | - * @param int|null $offset |
|
| 155 | 154 | */ |
| 156 | 155 | public function findBy(array $criteria, ?array $sort = null, $limit = null, $skip = null) : array |
| 157 | 156 | { |
@@ -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); |