Completed
Pull Request — master (#1860)
by Andreas
14:26
created
lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -2133,6 +2133,7 @@
 block discarded – undo
2133 2133
 
2134 2134
     /**
2135 2135
      * Clears the UnitOfWork.
2136
+     * @param string $documentName
2136 2137
      */
2137 2138
     public function clear(?string $documentName = null) : void
2138 2139
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@
 block discarded – undo
137 137
         return $this;
138 138
     }
139 139
 
140
+    /**
141
+     * @param ClassMetadata $class
142
+     */
140 143
     protected function prepareFieldName(string $fieldName, ?ClassMetadata $class = null) : string
141 144
     {
142 145
         if (! $class) {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -630,6 +630,7 @@  discard block
 block discarded – undo
630 630
      *
631 631
      * @throws InvalidArgumentException If document class is not this class or
632 632
      *                                   a Proxy of this class.
633
+     * @param \Doctrine\ODM\MongoDB\Event\PreLoadEventArgs[] $arguments
633 634
      */
634 635
     public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void
635 636
     {
@@ -1282,6 +1283,7 @@  discard block
 block discarded – undo
1282 1283
      * {@inheritDoc}
1283 1284
      *
1284 1285
      * Checks whether the class has a mapped association (embed or reference) with the given field name.
1286
+     * @param string|null $fieldName
1285 1287
      */
1286 1288
     public function hasAssociation($fieldName) : bool
1287 1289
     {
@@ -1941,7 +1943,7 @@  discard block
 block discarded – undo
1941 1943
      *      - reflClass (ReflectionClass)
1942 1944
      *      - reflFields (ReflectionProperty array)
1943 1945
      *
1944
-     * @return array The names of all the fields that should be serialized.
1946
+     * @return string[] The names of all the fields that should be serialized.
1945 1947
      */
1946 1948
     public function __sleep()
1947 1949
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -474,6 +474,7 @@  discard block
 block discarded – undo
474 474
 
475 475
     /**
476 476
      * Finds documents by a set of criteria.
477
+     * @param integer $limit
477 478
      */
478 479
     public function loadAll(array $criteria = [], ?array $sort = null, ?int $limit = null, ?int $skip = null) : Iterator
479 480
     {
@@ -583,7 +584,7 @@  discard block
 block discarded – undo
583 584
      * @param object $result   The query result.
584 585
      * @param object $document The document object to fill, if any.
585 586
      * @param array  $hints    Hints for document creation.
586
-     * @return object The filled and managed document object or NULL, if the query result is empty.
587
+     * @return null|\Doctrine\ODM\MongoDB\object The filled and managed document object or NULL, if the query result is empty.
587 588
      */
588 589
     private function createDocument($result, ?object $document = null, array $hints = []) : ?object
589 590
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/SchemaManager.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Ensure indexes are created for all documents that can be loaded with the
38 38
      * metadata factory.
39
+     * @param integer $timeout
39 40
      */
40 41
     public function ensureIndexes(?int $timeout = null) : void
41 42
     {
@@ -53,6 +54,7 @@  discard block
 block discarded – undo
53 54
      *
54 55
      * Indexes that exist in MongoDB but not the document metadata will be
55 56
      * deleted.
57
+     * @param integer $timeout
56 58
      */
57 59
     public function updateIndexes(?int $timeout = null) : void
58 60
     {
Please login to merge, or discard this patch.