@@ -441,6 +441,7 @@ discard block |
||
441 | 441 | * be used to match an _id value. |
442 | 442 | * |
443 | 443 | * @param mixed $criteria Query criteria |
444 | + * @param GhostObjectInterface $document |
|
444 | 445 | * |
445 | 446 | * @throws LockException |
446 | 447 | * |
@@ -479,6 +480,9 @@ discard block |
||
479 | 480 | |
480 | 481 | /** |
481 | 482 | * Finds documents by a set of criteria. |
483 | + * @param string[] $sort |
|
484 | + * @param integer $limit |
|
485 | + * @param integer $skip |
|
482 | 486 | */ |
483 | 487 | public function loadAll(array $criteria = [], ?array $sort = null, ?int $limit = null, ?int $skip = null) : Iterator |
484 | 488 | { |
@@ -172,6 +172,9 @@ |
||
172 | 172 | } |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @param string|null $fileName |
|
177 | + */ |
|
175 | 178 | private function generateHydratorClass(ClassMetadata $class, string $hydratorClassName, ?string $fileName) : void |
176 | 179 | { |
177 | 180 | $code = ''; |
@@ -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 |
@@ -575,6 +575,7 @@ discard block |
||
575 | 575 | /** |
576 | 576 | * INTERNAL: |
577 | 577 | * Sets the mapped identifier field of this class. |
578 | + * @param string|null $identifier |
|
578 | 579 | */ |
579 | 580 | public function setIdentifier(?string $identifier) : void |
580 | 581 | { |
@@ -645,6 +646,7 @@ discard block |
||
645 | 646 | * |
646 | 647 | * @throws InvalidArgumentException If document class is not this class or |
647 | 648 | * a Proxy of this class. |
649 | + * @param \Doctrine\ODM\MongoDB\Event\LifecycleEventArgs[] $arguments |
|
648 | 650 | */ |
649 | 651 | public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void |
650 | 652 | { |
@@ -711,7 +713,7 @@ discard block |
||
711 | 713 | * Note: A method may be registered multiple times for different fields. |
712 | 714 | * it will be invoked only once for the first field found. |
713 | 715 | * |
714 | - * @param array|string $fields Database field name(s) |
|
716 | + * @param string $fields Database field name(s) |
|
715 | 717 | */ |
716 | 718 | public function registerAlsoLoadMethod(string $method, $fields) : void |
717 | 719 | { |
@@ -735,7 +737,7 @@ discard block |
||
735 | 737 | * are only used to discern the hydration class and are not mapped to class |
736 | 738 | * properties. |
737 | 739 | * |
738 | - * @param array|string|null $discriminatorField |
|
740 | + * @param string|null $discriminatorField |
|
739 | 741 | * |
740 | 742 | * @throws MappingException If the discriminator field conflicts with the |
741 | 743 | * "name" attribute of a mapped field. |
@@ -803,6 +805,7 @@ discard block |
||
803 | 805 | * Used for SINGLE_TABLE inheritance mapping strategies if the document has no discriminator value |
804 | 806 | * |
805 | 807 | * @throws MappingException |
808 | + * @param string|null $defaultDiscriminatorValue |
|
806 | 809 | */ |
807 | 810 | public function setDefaultDiscriminatorValue(?string $defaultDiscriminatorValue) : void |
808 | 811 | { |
@@ -1659,6 +1662,7 @@ discard block |
||
1659 | 1662 | /** |
1660 | 1663 | * Sets the name of the field that is to be used for versioning if this class is |
1661 | 1664 | * versioned for optimistic locking. |
1665 | + * @param string|null $versionField |
|
1662 | 1666 | */ |
1663 | 1667 | public function setVersionField(?string $versionField) : void |
1664 | 1668 | { |
@@ -1955,7 +1959,7 @@ discard block |
||
1955 | 1959 | * - reflClass (ReflectionClass) |
1956 | 1960 | * - reflFields (ReflectionProperty array) |
1957 | 1961 | * |
1958 | - * @return array The names of all the fields that should be serialized. |
|
1962 | + * @return string[] The names of all the fields that should be serialized. |
|
1959 | 1963 | */ |
1960 | 1964 | public function __sleep() |
1961 | 1965 | { |
@@ -404,7 +404,7 @@ |
||
404 | 404 | * The background option is only relevant to index creation and is not |
405 | 405 | * considered. |
406 | 406 | * |
407 | - * @param array|IndexInfo $mongoIndex Mongo index data. |
|
407 | + * @param IndexInfo $mongoIndex Mongo index data. |
|
408 | 408 | */ |
409 | 409 | public function isMongoIndexEquivalentToDocumentIndex($mongoIndex, array $documentIndex) : bool |
410 | 410 | { |