@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * @param InputInterface $input |
| 47 | 47 | * @param OutputInterface $output |
| 48 | - * @return int|null|void |
|
| 48 | + * @return integer |
|
| 49 | 49 | */ |
| 50 | 50 | protected function execute(InputInterface $input, OutputInterface $output) |
| 51 | 51 | { |
@@ -331,6 +331,7 @@ discard block |
||
| 331 | 331 | |
| 332 | 332 | /** |
| 333 | 333 | * Should an existing document be backed up if it already exists? |
| 334 | + * @param boolean $bool |
|
| 334 | 335 | */ |
| 335 | 336 | public function setBackupExisting($bool) |
| 336 | 337 | { |
@@ -770,6 +771,10 @@ discard block |
||
| 770 | 771 | return implode("\n", $lines); |
| 771 | 772 | } |
| 772 | 773 | |
| 774 | + /** |
|
| 775 | + * @param string $type |
|
| 776 | + * @param string $defaultValue |
|
| 777 | + */ |
|
| 773 | 778 | private function generateDocumentStubMethod(ClassMetadataInfo $metadata, $type, $fieldName, $typeHint = null, $defaultValue = null) |
| 774 | 779 | { |
| 775 | 780 | // Add/remove methods should use the singular form of the field name |
@@ -954,6 +959,9 @@ discard block |
||
| 954 | 959 | return implode("\n", $lines); |
| 955 | 960 | } |
| 956 | 961 | |
| 962 | + /** |
|
| 963 | + * @param integer $type |
|
| 964 | + */ |
|
| 957 | 965 | private function getInheritanceTypeString($type) |
| 958 | 966 | { |
| 959 | 967 | switch ($type) { |
@@ -971,6 +979,9 @@ discard block |
||
| 971 | 979 | } |
| 972 | 980 | } |
| 973 | 981 | |
| 982 | + /** |
|
| 983 | + * @param integer $policy |
|
| 984 | + */ |
|
| 974 | 985 | private function getChangeTrackingPolicyString($policy) |
| 975 | 986 | { |
| 976 | 987 | switch ($policy) { |
@@ -988,6 +999,9 @@ discard block |
||
| 988 | 999 | } |
| 989 | 1000 | } |
| 990 | 1001 | |
| 1002 | + /** |
|
| 1003 | + * @param string $type |
|
| 1004 | + */ |
|
| 991 | 1005 | private function getIdGeneratorTypeString($type) |
| 992 | 1006 | { |
| 993 | 1007 | switch ($type) { |
@@ -841,7 +841,7 @@ |
||
| 841 | 841 | /** |
| 842 | 842 | * Gets the ReflectionProperties of the mapped class. |
| 843 | 843 | * |
| 844 | - * @return array An array of ReflectionProperty instances. |
|
| 844 | + * @return \ReflectionProperty[] An array of ReflectionProperty instances. |
|
| 845 | 845 | */ |
| 846 | 846 | public function getReflectionProperties() |
| 847 | 847 | { |
@@ -2630,7 +2630,7 @@ discard block |
||
| 2630 | 2630 | * INTERNAL: |
| 2631 | 2631 | * Unschedules a collection from being deleted when this UnitOfWork commits. |
| 2632 | 2632 | * |
| 2633 | - * @param \Doctrine\ODM\MongoDB\PersistentCollectionInterface $coll |
|
| 2633 | + * @param PersistentCollectionInterface $coll |
|
| 2634 | 2634 | */ |
| 2635 | 2635 | public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll) |
| 2636 | 2636 | { |
@@ -2668,7 +2668,7 @@ discard block |
||
| 2668 | 2668 | * INTERNAL: |
| 2669 | 2669 | * Unschedules a collection from being updated when this UnitOfWork commits. |
| 2670 | 2670 | * |
| 2671 | - * @param \Doctrine\ODM\MongoDB\PersistentCollectionInterface $coll |
|
| 2671 | + * @param PersistentCollectionInterface $coll |
|
| 2672 | 2672 | */ |
| 2673 | 2673 | public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll) |
| 2674 | 2674 | { |
@@ -2849,7 +2849,7 @@ discard block |
||
| 2849 | 2849 | * @param array $data The data for the document. |
| 2850 | 2850 | * @param array $hints Any hints to account for during reconstitution/lookup of the document. |
| 2851 | 2851 | * @param object The document to be hydrated into in case of creation |
| 2852 | - * @return object The document instance. |
|
| 2852 | + * @return callable|null The document instance. |
|
| 2853 | 2853 | * @internal Highly performance-sensitive method. |
| 2854 | 2854 | */ |
| 2855 | 2855 | public function getOrCreateDocument($className, $data, &$hints = array(), $document = null) |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | use Doctrine\Common\NotifyPropertyChanged; |
| 26 | 26 | use Doctrine\Common\PropertyChangedListener; |
| 27 | 27 | use Doctrine\MongoDB\GridFSFile; |
| 28 | -use Doctrine\ODM\MongoDB\Event\LifecycleEventArgs; |
|
| 29 | 28 | use Doctrine\ODM\MongoDB\Hydrator\HydratorFactory; |
| 30 | 29 | use Doctrine\ODM\MongoDB\Mapping\ClassMetadata; |
| 31 | 30 | use Doctrine\ODM\MongoDB\PersistentCollection; |
@@ -84,6 +84,11 @@ |
||
| 84 | 84 | return $className; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + /** |
|
| 88 | + * @param string $for |
|
| 89 | + * @param string $targetFqcn |
|
| 90 | + * @param string|false $fileName |
|
| 91 | + */ |
|
| 87 | 92 | private function generateCollectionClass($for, $targetFqcn, $fileName) |
| 88 | 93 | { |
| 89 | 94 | $exploded = explode('\\', $targetFqcn); |