@@ -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 |
@@ -2182,6 +2182,7 @@ |
||
| 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 | { |
@@ -576,6 +576,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | { |
@@ -197,6 +197,8 @@ discard block |
||
| 197 | 197 | /** |
| 198 | 198 | * Creates a new Document that operates on the given Mongo connection |
| 199 | 199 | * and uses the given Configuration. |
| 200 | + * @param Client $client |
|
| 201 | + * @param Configuration $config |
|
| 200 | 202 | */ |
| 201 | 203 | public static function create(?Client $client = null, ?Configuration $config = null, ?EventManager $eventManager = null) : DocumentManager |
| 202 | 204 | { |
@@ -424,7 +426,7 @@ discard block |
||
| 424 | 426 | * NOTE: The persist operation always considers documents that are not yet known to |
| 425 | 427 | * this DocumentManager as NEW. Do not pass detached documents to the persist operation. |
| 426 | 428 | * |
| 427 | - * @param object $document The instance to make managed and persistent. |
|
| 429 | + * @param \Documents\User $document The instance to make managed and persistent. |
|
| 428 | 430 | * |
| 429 | 431 | * @throws InvalidArgumentException When the given $document param is not an object. |
| 430 | 432 | */ |
@@ -274,7 +274,7 @@ |
||
| 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 | { |
@@ -68,6 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * {@inheritDoc} |
| 71 | + * @param \Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator $locator |
|
| 71 | 72 | */ |
| 72 | 73 | public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION) |
| 73 | 74 | { |