Completed
Pull Request — master (#2184)
by Maciej
25:09
created
lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -483,6 +483,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Repository/DocumentRepository.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -87,6 +87,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -2182,6 +2182,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/Driver/AnnotationDriver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
274 274
     /**
275 275
      * Factory method for the Annotation Driver
276 276
      *
277
-     * @param string[]|string $paths
277
+     * @param string $paths
278 278
      */
279 279
     public static function create($paths = [], ?Reader $reader = null) : AnnotationDriver
280 280
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/DocumentManager.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,6 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * Creates a new Document that operates on the given Mongo connection
199 199
      * and uses the given Configuration.
200
+     * @param Configuration $config
200 201
      */
201 202
     public static function create(?Client $client = null, ?Configuration $config = null, ?EventManager $eventManager = null) : DocumentManager
202 203
     {
@@ -424,7 +425,7 @@  discard block
 block discarded – undo
424 425
      * NOTE: The persist operation always considers documents that are not yet known to
425 426
      * this DocumentManager as NEW. Do not pass detached documents to the persist operation.
426 427
      *
427
-     * @param object $document The instance to make managed and persistent.
428
+     * @param \Documents\User $document The instance to make managed and persistent.
428 429
      *
429 430
      * @throws InvalidArgumentException When the given $document param is not an object.
430 431
      */
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -591,6 +591,7 @@  discard block
 block discarded – undo
591 591
      * Sets the mapped identifier field of this class.
592 592
      *
593 593
      * @internal
594
+     * @param string|null $identifier
594 595
      */
595 596
     public function setIdentifier(?string $identifier) : void
596 597
     {
@@ -661,6 +662,7 @@  discard block
 block discarded – undo
661 662
      *
662 663
      * @throws InvalidArgumentException If document class is not this class or
663 664
      *                                   a Proxy of this class.
665
+     * @param \Doctrine\ODM\MongoDB\Event\PreLoadEventArgs[] $arguments
664 666
      */
665 667
     public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void
666 668
     {
@@ -1327,6 +1329,7 @@  discard block
 block discarded – undo
1327 1329
      * {@inheritDoc}
1328 1330
      *
1329 1331
      * Checks whether the class has a mapped association (embed or reference) with the given field name.
1332
+     * @param string $fieldName
1330 1333
      */
1331 1334
     public function hasAssociation($fieldName) : bool
1332 1335
     {
@@ -1694,6 +1697,7 @@  discard block
 block discarded – undo
1694 1697
     /**
1695 1698
      * Sets the name of the field that is to be used for versioning if this class is
1696 1699
      * versioned for optimistic locking.
1700
+     * @param string|null $versionField
1697 1701
      */
1698 1702
     public function setVersionField(?string $versionField) : void
1699 1703
     {
@@ -1775,6 +1779,8 @@  discard block
 block discarded – undo
1775 1779
 
1776 1780
     /**
1777 1781
      * {@inheritDoc}
1782
+     * @param string|null $fieldName
1783
+     * @return string
1778 1784
      */
1779 1785
     public function getTypeOfField($fieldName) : ?string
1780 1786
     {
@@ -2007,7 +2013,7 @@  discard block
 block discarded – undo
2007 2013
      *      - reflClass (ReflectionClass)
2008 2014
      *      - reflFields (ReflectionProperty array)
2009 2015
      *
2010
-     * @return array The names of all the fields that should be serialized.
2016
+     * @return string[] The names of all the fields that should be serialized.
2011 2017
      */
2012 2018
     public function __sleep()
2013 2019
     {
Please login to merge, or discard this patch.