Completed
Pull Request — master (#1803)
by Maciej
20:22
created
lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -172,6 +172,9 @@
 block discarded – undo
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 = '';
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -580,6 +580,7 @@  discard block
 block discarded – undo
580 580
     /**
581 581
      * INTERNAL:
582 582
      * Sets the mapped identifier field of this class.
583
+     * @param string|null $identifier
583 584
      */
584 585
     public function setIdentifier(?string $identifier) : void
585 586
     {
@@ -650,6 +651,7 @@  discard block
 block discarded – undo
650 651
      *
651 652
      * @throws InvalidArgumentException If document class is not this class or
652 653
      *                                   a Proxy of this class.
654
+     * @param \Doctrine\ODM\MongoDB\Event\PreLoadEventArgs[] $arguments
653 655
      */
654 656
     public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void
655 657
     {
@@ -1304,6 +1306,7 @@  discard block
 block discarded – undo
1304 1306
      * {@inheritDoc}
1305 1307
      *
1306 1308
      * Checks whether the class has a mapped association (embed or reference) with the given field name.
1309
+     * @param string|null $fieldName
1307 1310
      */
1308 1311
     public function hasAssociation($fieldName) : bool
1309 1312
     {
@@ -1667,6 +1670,7 @@  discard block
 block discarded – undo
1667 1670
     /**
1668 1671
      * Sets the name of the field that is to be used for versioning if this class is
1669 1672
      * versioned for optimistic locking.
1673
+     * @param string|null $versionField
1670 1674
      */
1671 1675
     public function setVersionField(?string $versionField) : void
1672 1676
     {
@@ -1961,7 +1965,7 @@  discard block
 block discarded – undo
1961 1965
      *      - reflClass (ReflectionClass)
1962 1966
      *      - reflFields (ReflectionProperty array)
1963 1967
      *
1964
-     * @return array The names of all the fields that should be serialized.
1968
+     * @return string[] The names of all the fields that should be serialized.
1965 1969
      */
1966 1970
     public function __sleep()
1967 1971
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@
 block discarded – undo
57 57
         $this->config = $config;
58 58
     }
59 59
 
60
+    /**
61
+     * @param string $className
62
+     */
60 63
     public function getMetadataFor($className)
61 64
     {
62 65
         return parent::getMetadataFor($this->dm->getClassNameResolver()->getRealClass($className));
Please login to merge, or discard this patch.
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/Query/Builder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use MongoDB\BSON\Javascript;
15 15
 use MongoDB\Collection;
16 16
 use MongoDB\Driver\ReadPreference;
17
-use Traversable;
18 17
 use function array_filter;
19 18
 use function array_key_exists;
20 19
 use function count;
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.