@@ -483,6 +483,8 @@ |
||
483 | 483 | |
484 | 484 | /** |
485 | 485 | * Finds documents by a set of criteria. |
486 | + * @param integer $limit |
|
487 | + * @param integer $skip |
|
486 | 488 | */ |
487 | 489 | public function loadAll(array $criteria = [], ?array $sort = null, ?int $limit = null, ?int $skip = null) : Iterator |
488 | 490 | { |
@@ -87,6 +87,7 @@ |
||
87 | 87 | * expected version may be specified. |
88 | 88 | * |
89 | 89 | * @param mixed $id Identifier. |
90 | + * @param integer $lockVersion |
|
90 | 91 | * |
91 | 92 | * @throws MappingException |
92 | 93 | * @throws LockException |
@@ -576,6 +576,7 @@ discard block |
||
576 | 576 | * Sets the mapped identifier field of this class. |
577 | 577 | * |
578 | 578 | * @internal |
579 | + * @param string|null $identifier |
|
579 | 580 | */ |
580 | 581 | public function setIdentifier(?string $identifier) : void |
581 | 582 | { |
@@ -646,6 +647,7 @@ discard block |
||
646 | 647 | * |
647 | 648 | * @throws InvalidArgumentException If document class is not this class or |
648 | 649 | * a Proxy of this class. |
650 | + * @param \Doctrine\ODM\MongoDB\Event\PreLoadEventArgs[] $arguments |
|
649 | 651 | */ |
650 | 652 | public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void |
651 | 653 | { |
@@ -1299,6 +1301,7 @@ discard block |
||
1299 | 1301 | * {@inheritDoc} |
1300 | 1302 | * |
1301 | 1303 | * Checks whether the class has a mapped association (embed or reference) with the given field name. |
1304 | + * @param string $fieldName |
|
1302 | 1305 | */ |
1303 | 1306 | public function hasAssociation($fieldName) : bool |
1304 | 1307 | { |
@@ -1662,6 +1665,7 @@ discard block |
||
1662 | 1665 | /** |
1663 | 1666 | * Sets the name of the field that is to be used for versioning if this class is |
1664 | 1667 | * versioned for optimistic locking. |
1668 | + * @param string|null $versionField |
|
1665 | 1669 | */ |
1666 | 1670 | public function setVersionField(?string $versionField) : void |
1667 | 1671 | { |
@@ -1958,7 +1962,7 @@ discard block |
||
1958 | 1962 | * - reflClass (ReflectionClass) |
1959 | 1963 | * - reflFields (ReflectionProperty array) |
1960 | 1964 | * |
1961 | - * @return array The names of all the fields that should be serialized. |
|
1965 | + * @return string[] The names of all the fields that should be serialized. |
|
1962 | 1966 | */ |
1963 | 1967 | public function __sleep() |
1964 | 1968 | { |
@@ -2182,6 +2182,7 @@ |
||
2182 | 2182 | * Clears the UnitOfWork. |
2183 | 2183 | * |
2184 | 2184 | * @internal |
2185 | + * @param string $documentName |
|
2185 | 2186 | */ |
2186 | 2187 | public function clear(?string $documentName = null) : void |
2187 | 2188 | { |
@@ -36,6 +36,9 @@ |
||
36 | 36 | parent::__construct($dm); |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param ClassMetadata $classMetadata |
|
41 | + */ |
|
39 | 42 | public function setFoundMetadata(?ClassMetadata $classMetadata = null) |
40 | 43 | { |
41 | 44 | $this->foundMetadata = $classMetadata; |
@@ -18,6 +18,9 @@ |
||
18 | 18 | */ |
19 | 19 | class OnClearEventArgs extends BaseOnClearEventArgs |
20 | 20 | { |
21 | + /** |
|
22 | + * @param DocumentManager $objectManager |
|
23 | + */ |
|
21 | 24 | public function __construct($objectManager, $entityClass = null) |
22 | 25 | { |
23 | 26 | if (self::class !== static::class) { |
@@ -21,6 +21,9 @@ |
||
21 | 21 | */ |
22 | 22 | class MappingException extends BaseMappingException |
23 | 23 | { |
24 | + /** |
|
25 | + * @param ReflectionException $previous |
|
26 | + */ |
|
24 | 27 | public function __construct($message = '', $code = 0, ?Throwable $previous = null) |
25 | 28 | { |
26 | 29 | if (self::class !== static::class) { |