@@ -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 | { |
@@ -148,6 +148,10 @@ |
||
148 | 148 | $this->generateCollectionClass($class, $className, $fileName); |
149 | 149 | } |
150 | 150 | |
151 | + /** |
|
152 | + * @param string $targetFqcn |
|
153 | + * @param string|false $fileName |
|
154 | + */ |
|
151 | 155 | private function generateCollectionClass($for, $targetFqcn, $fileName) |
152 | 156 | { |
153 | 157 | $exploded = explode('\\', $targetFqcn); |
@@ -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) |