Completed
Pull Request — master (#2128)
by Maciej
24:24
created
lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -441,6 +441,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -576,6 +576,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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\LifecycleEventArgs[] $arguments
649 651
      */
650 652
     public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void
651 653
     {
@@ -712,7 +714,7 @@  discard block
 block discarded – undo
712 714
      * Note: A method may be registered multiple times for different fields.
713 715
      * it will be invoked only once for the first field found.
714 716
      *
715
-     * @param array|string $fields Database field name(s)
717
+     * @param string $fields Database field name(s)
716 718
      */
717 719
     public function registerAlsoLoadMethod(string $method, $fields) : void
718 720
     {
@@ -736,7 +738,7 @@  discard block
 block discarded – undo
736 738
      * are only used to discern the hydration class and are not mapped to class
737 739
      * properties.
738 740
      *
739
-     * @param array|string|null $discriminatorField
741
+     * @param string|null $discriminatorField
740 742
      *
741 743
      * @throws MappingException If the discriminator field conflicts with the
742 744
      *                          "name" attribute of a mapped field.
@@ -804,6 +806,7 @@  discard block
 block discarded – undo
804 806
      * Used for SINGLE_TABLE inheritance mapping strategies if the document has no discriminator value
805 807
      *
806 808
      * @throws MappingException
809
+     * @param string|null $defaultDiscriminatorValue
807 810
      */
808 811
     public function setDefaultDiscriminatorValue(?string $defaultDiscriminatorValue) : void
809 812
     {
@@ -1662,6 +1665,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.