@@ -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 = ''; |
@@ -580,6 +580,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | { |
@@ -57,6 +57,9 @@ |
||
| 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)); |
@@ -483,6 +483,8 @@ |
||
| 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 | { |
@@ -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 |