@@ -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)) { |
@@ -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 | { |
@@ -2133,6 +2133,7 @@ |
||
2133 | 2133 | |
2134 | 2134 | /** |
2135 | 2135 | * Clears the UnitOfWork. |
2136 | + * @param string $documentName |
|
2136 | 2137 | */ |
2137 | 2138 | public function clear(?string $documentName = null) : void |
2138 | 2139 | { |
@@ -137,6 +137,9 @@ |
||
137 | 137 | return $this; |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param ClassMetadata $class |
|
142 | + */ |
|
140 | 143 | protected function prepareFieldName(string $fieldName, ?ClassMetadata $class = null) : string |
141 | 144 | { |
142 | 145 | if (! $class) { |
@@ -630,6 +630,7 @@ discard block |
||
630 | 630 | * |
631 | 631 | * @throws InvalidArgumentException If document class is not this class or |
632 | 632 | * a Proxy of this class. |
633 | + * @param \Doctrine\ODM\MongoDB\Event\PreLoadEventArgs[] $arguments |
|
633 | 634 | */ |
634 | 635 | public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void |
635 | 636 | { |
@@ -1282,6 +1283,7 @@ discard block |
||
1282 | 1283 | * {@inheritDoc} |
1283 | 1284 | * |
1284 | 1285 | * Checks whether the class has a mapped association (embed or reference) with the given field name. |
1286 | + * @param string|null $fieldName |
|
1285 | 1287 | */ |
1286 | 1288 | public function hasAssociation($fieldName) : bool |
1287 | 1289 | { |
@@ -1941,7 +1943,7 @@ discard block |
||
1941 | 1943 | * - reflClass (ReflectionClass) |
1942 | 1944 | * - reflFields (ReflectionProperty array) |
1943 | 1945 | * |
1944 | - * @return array The names of all the fields that should be serialized. |
|
1946 | + * @return string[] The names of all the fields that should be serialized. |
|
1945 | 1947 | */ |
1946 | 1948 | public function __sleep() |
1947 | 1949 | { |
@@ -36,6 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Ensure indexes are created for all documents that can be loaded with the |
38 | 38 | * metadata factory. |
39 | + * @param integer $timeout |
|
39 | 40 | */ |
40 | 41 | public function ensureIndexes(?int $timeout = null) : void |
41 | 42 | { |
@@ -53,6 +54,7 @@ discard block |
||
53 | 54 | * |
54 | 55 | * Indexes that exist in MongoDB but not the document metadata will be |
55 | 56 | * deleted. |
57 | + * @param integer $timeout |
|
56 | 58 | */ |
57 | 59 | public function updateIndexes(?int $timeout = null) : void |
58 | 60 | { |
@@ -1074,7 +1074,7 @@ discard block |
||
1074 | 1074 | * |
1075 | 1075 | * @param mixed|self $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer. |
1076 | 1076 | * @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. |
1077 | - * @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. |
|
1077 | + * @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. |
|
1078 | 1078 | */ |
1079 | 1079 | public function range($start, $end, $step = 1) : self |
1080 | 1080 | { |
@@ -1588,6 +1588,7 @@ discard block |
||
1588 | 1588 | * Ensure that a current field has been set. |
1589 | 1589 | * |
1590 | 1590 | * @throws LogicException If a current field has not been set. |
1591 | + * @param string $method |
|
1591 | 1592 | */ |
1592 | 1593 | private function requiresCurrentField(?string $method = null) : void |
1593 | 1594 | { |
@@ -1598,6 +1599,7 @@ discard block |
||
1598 | 1599 | |
1599 | 1600 | /** |
1600 | 1601 | * @throws BadMethodCallException If there is no current switch operator. |
1602 | + * @param string $method |
|
1601 | 1603 | */ |
1602 | 1604 | private function requiresSwitchStatement(?string $method = null) : void |
1603 | 1605 | { |
@@ -452,7 +452,7 @@ |
||
452 | 452 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
453 | 453 | * |
454 | 454 | * @param float|int $divisor |
455 | - * @param float|int $remainder |
|
455 | + * @param integer $remainder |
|
456 | 456 | */ |
457 | 457 | public function mod($divisor, $remainder = 0) : self |
458 | 458 | { |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | * @see http://docs.mongodb.org/manual/meta/aggregation-quick-reference/#aggregation-expressions |
397 | 397 | * @see Expr::expression |
398 | 398 | * |
399 | - * @param mixed|Expr $value |
|
399 | + * @param boolean $value |
|
400 | 400 | */ |
401 | 401 | public function expression($value) |
402 | 402 | { |
@@ -994,7 +994,7 @@ discard block |
||
994 | 994 | * |
995 | 995 | * @param mixed|Expr $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer. |
996 | 996 | * @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. |
997 | - * @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. |
|
997 | + * @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. |
|
998 | 998 | */ |
999 | 999 | public function range($start, $end, $step = 1) : self |
1000 | 1000 | { |