@@ -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)) { |
@@ -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) { |
@@ -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 | { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * @see http://php.net/iterator.current |
| 42 | 42 | * |
| 43 | - * @return mixed |
|
| 43 | + * @return \Doctrine\ODM\MongoDB\object|null |
|
| 44 | 44 | */ |
| 45 | 45 | public function current() |
| 46 | 46 | { |
@@ -1010,7 +1010,7 @@ discard block |
||
| 1010 | 1010 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
| 1011 | 1011 | * |
| 1012 | 1012 | * @param float|int $divisor |
| 1013 | - * @param float|int $remainder |
|
| 1013 | + * @param integer $remainder |
|
| 1014 | 1014 | */ |
| 1015 | 1015 | public function mod($divisor, $remainder = 0) : self |
| 1016 | 1016 | { |
@@ -1171,7 +1171,7 @@ discard block |
||
| 1171 | 1171 | * If a custom callable is used, its signature should conform to the default |
| 1172 | 1172 | * Closure defined in {@link ReferencePrimer::__construct()}. |
| 1173 | 1173 | * |
| 1174 | - * @param bool|callable $primer |
|
| 1174 | + * @param boolean $primer |
|
| 1175 | 1175 | * |
| 1176 | 1176 | * @throws InvalidArgumentException If $primer is not boolean or callable. |
| 1177 | 1177 | */ |
@@ -1518,7 +1518,7 @@ discard block |
||
| 1518 | 1518 | * field name (key) and order (value) pairs. |
| 1519 | 1519 | * |
| 1520 | 1520 | * @param array|string $fieldName Field name or array of field/order pairs |
| 1521 | - * @param int|string $order Field order (if one field is specified) |
|
| 1521 | + * @param integer $order Field order (if one field is specified) |
|
| 1522 | 1522 | */ |
| 1523 | 1523 | public function sort($fieldName, $order = 1) : self |
| 1524 | 1524 | { |
@@ -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 | { |