@@ -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 | { |
@@ -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)) { |
@@ -38,6 +38,7 @@ |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * {@inheritDoc} |
41 | + * @param \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator $locator |
|
41 | 42 | */ |
42 | 43 | public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION) |
43 | 44 | { |
@@ -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 | { |
@@ -442,6 +442,7 @@ discard block |
||
442 | 442 | * be used to match an _id value. |
443 | 443 | * |
444 | 444 | * @param mixed $criteria Query criteria |
445 | + * @param \Doctrine\Common\Proxy\Proxy $document |
|
445 | 446 | * @throws LockException |
446 | 447 | * @todo Check identity map? loadById method? Try to guess whether $criteria is the id? |
447 | 448 | */ |
@@ -474,6 +475,9 @@ discard block |
||
474 | 475 | |
475 | 476 | /** |
476 | 477 | * Finds documents by a set of criteria. |
478 | + * @param string[] $sort |
|
479 | + * @param integer $limit |
|
480 | + * @param integer $skip |
|
477 | 481 | */ |
478 | 482 | public function loadAll(array $criteria = [], ?array $sort = null, ?int $limit = null, ?int $skip = null) : Iterator |
479 | 483 | { |
@@ -583,7 +587,7 @@ discard block |
||
583 | 587 | * @param object $result The query result. |
584 | 588 | * @param object $document The document object to fill, if any. |
585 | 589 | * @param array $hints Hints for document creation. |
586 | - * @return object The filled and managed document object or NULL, if the query result is empty. |
|
590 | + * @return null|\Doctrine\ODM\MongoDB\object The filled and managed document object or NULL, if the query result is empty. |
|
587 | 591 | */ |
588 | 592 | private function createDocument($result, ?object $document = null, array $hints = []) : ?object |
589 | 593 | { |