@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * Construct a Builder |
95 | 95 | * |
96 | 96 | * @param DocumentManager $dm |
97 | - * @param string[]|string|null $documentName (optional) an array of document names, the document name, or none |
|
97 | + * @param string|null $documentName (optional) an array of document names, the document name, or none |
|
98 | 98 | */ |
99 | 99 | public function __construct(DocumentManager $dm, $documentName = null) |
100 | 100 | { |
@@ -1079,7 +1079,7 @@ discard block |
||
1079 | 1079 | * @see Expr::mod() |
1080 | 1080 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
1081 | 1081 | * @param float|integer $divisor |
1082 | - * @param float|integer $remainder |
|
1082 | + * @param integer $remainder |
|
1083 | 1083 | * @return $this |
1084 | 1084 | */ |
1085 | 1085 | public function mod($divisor, $remainder = 0) |
@@ -1243,7 +1243,7 @@ discard block |
||
1243 | 1243 | * If a custom callable is used, its signature should conform to the default |
1244 | 1244 | * Closure defined in {@link ReferencePrimer::__construct()}. |
1245 | 1245 | * |
1246 | - * @param boolean|callable $primer |
|
1246 | + * @param boolean $primer |
|
1247 | 1247 | * @return $this |
1248 | 1248 | * @throws \InvalidArgumentException If $primer is not boolean or callable |
1249 | 1249 | */ |
@@ -1637,7 +1637,7 @@ discard block |
||
1637 | 1637 | * field name (key) and order (value) pairs. |
1638 | 1638 | * |
1639 | 1639 | * @param array|string $fieldName Field name or array of field/order pairs |
1640 | - * @param int|string $order Field order (if one field is specified) |
|
1640 | + * @param integer $order Field order (if one field is specified) |
|
1641 | 1641 | * @return $this |
1642 | 1642 | */ |
1643 | 1643 | public function sort($fieldName, $order = 1) |
@@ -804,7 +804,7 @@ |
||
804 | 804 | * @see Builder::mod() |
805 | 805 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
806 | 806 | * @param float|integer $divisor |
807 | - * @param float|integer $remainder |
|
807 | + * @param integer $remainder |
|
808 | 808 | * @return $this |
809 | 809 | */ |
810 | 810 | public function mod($divisor, $remainder = 0) |
@@ -362,6 +362,7 @@ |
||
362 | 362 | * query array, provided they exist and are not null. |
363 | 363 | * |
364 | 364 | * @param string ...$keys One or more option keys to be read |
365 | + * @param string[] $keys |
|
365 | 366 | * @return array |
366 | 367 | */ |
367 | 368 | private function getQueryOptions(string ...$keys) |
@@ -482,7 +482,7 @@ |
||
482 | 482 | * @see Expr::mod() |
483 | 483 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
484 | 484 | * @param float|integer $divisor |
485 | - * @param float|integer $remainder |
|
485 | + * @param integer $remainder |
|
486 | 486 | * @return $this |
487 | 487 | */ |
488 | 488 | public function mod($divisor, $remainder = 0) |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Doctrine\ODM\MongoDB\Mapping\Driver; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Annotations\AnnotationReader; |
6 | -use Doctrine\Common\Annotations\AnnotationRegistry; |
|
7 | 6 | use Doctrine\Common\Annotations\Reader; |
8 | 7 | use Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver as AbstractAnnotationDriver; |
9 | 8 | use Doctrine\ODM\MongoDB\Events; |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | /** |
1006 | 1006 | * Gets the ReflectionProperties of the mapped class. |
1007 | 1007 | * |
1008 | - * @return array An array of ReflectionProperty instances. |
|
1008 | + * @return \ReflectionProperty[] An array of ReflectionProperty instances. |
|
1009 | 1009 | */ |
1010 | 1010 | public function getReflectionProperties() |
1011 | 1011 | { |
@@ -1319,6 +1319,7 @@ discard block |
||
1319 | 1319 | * {@inheritDoc} |
1320 | 1320 | * |
1321 | 1321 | * Checks whether the class has a mapped association (embed or reference) with the given field name. |
1322 | + * @param string $fieldName |
|
1322 | 1323 | */ |
1323 | 1324 | public function hasAssociation($fieldName) |
1324 | 1325 | { |
@@ -1553,7 +1554,7 @@ discard block |
||
1553 | 1554 | * |
1554 | 1555 | * @param string $dbFieldName |
1555 | 1556 | * |
1556 | - * @return array |
|
1557 | + * @return string |
|
1557 | 1558 | * @throws MappingException |
1558 | 1559 | */ |
1559 | 1560 | public function getFieldMappingByDbFieldName($dbFieldName) |
@@ -2066,7 +2067,7 @@ discard block |
||
2066 | 2067 | * - reflClass (ReflectionClass) |
2067 | 2068 | * - reflFields (ReflectionProperty array) |
2068 | 2069 | * |
2069 | - * @return array The names of all the fields that should be serialized. |
|
2070 | + * @return string[] The names of all the fields that should be serialized. |
|
2070 | 2071 | */ |
2071 | 2072 | public function __sleep() |
2072 | 2073 | { |
@@ -219,6 +219,9 @@ discard block |
||
219 | 219 | $class->addIndex($keys, $options); |
220 | 220 | } |
221 | 221 | |
222 | + /** |
|
223 | + * @param string $type |
|
224 | + */ |
|
222 | 225 | private function addEmbedMapping(ClassMetadata $class, $embed, $type) |
223 | 226 | { |
224 | 227 | $attributes = $embed->attributes(); |
@@ -256,6 +259,9 @@ discard block |
||
256 | 259 | $this->addFieldMapping($class, $mapping); |
257 | 260 | } |
258 | 261 | |
262 | + /** |
|
263 | + * @param string $type |
|
264 | + */ |
|
259 | 265 | private function addReferenceMapping(ClassMetadata $class, $reference, $type) |
260 | 266 | { |
261 | 267 | $cascade = array_keys((array) $reference->cascade); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * Generates a closure capable of initializing a proxy |
98 | 98 | * |
99 | - * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
|
99 | + * @param \Doctrine\ODM\MongoDB\Mapping\ClassMetadata $classMetadata |
|
100 | 100 | * @param \Doctrine\ODM\MongoDB\Persisters\DocumentPersister $documentPersister |
101 | 101 | * @param \ReflectionProperty $reflectionId |
102 | 102 | * |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | /** |
179 | 179 | * Generates a closure capable of finalizing a cloned proxy |
180 | 180 | * |
181 | - * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
|
181 | + * @param \Doctrine\ODM\MongoDB\Mapping\ClassMetadata $classMetadata |
|
182 | 182 | * @param \Doctrine\ODM\MongoDB\Persisters\DocumentPersister $documentPersister |
183 | 183 | * @param \ReflectionProperty $reflectionId |
184 | 184 | * |