@@ -117,7 +117,6 @@ discard block |
||
117 | 117 | * Converts a composite expression into the target query language output. |
118 | 118 | * |
119 | 119 | * @see ExpressionVisitor::walkCompositeExpression() |
120 | - * @param CompositeExpression $expr |
|
121 | 120 | * @return \Doctrine\ODM\MongoDB\Query\Expr |
122 | 121 | */ |
123 | 122 | public function walkCompositeExpression(CompositeExpression $compositeExpr) |
@@ -141,7 +140,7 @@ discard block |
||
141 | 140 | * |
142 | 141 | * @see ExpressionVisitor::walkValue() |
143 | 142 | * @param Value $value |
144 | - * @return mixed |
|
143 | + * @return string |
|
145 | 144 | */ |
146 | 145 | public function walkValue(Value $value) |
147 | 146 | { |
@@ -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) { |
@@ -2811,7 +2811,7 @@ |
||
2811 | 2811 | * @param array $data The data for the document. |
2812 | 2812 | * @param array $hints Any hints to account for during reconstitution/lookup of the document. |
2813 | 2813 | * @param object The document to be hydrated into in case of creation |
2814 | - * @return object The document instance. |
|
2814 | + * @return callable|null The document instance. |
|
2815 | 2815 | * @internal Highly performance-sensitive method. |
2816 | 2816 | */ |
2817 | 2817 | public function getOrCreateDocument($className, $data, &$hints = array(), $document = null) |
@@ -36,6 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * {@inheritDoc} |
39 | + * @param \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator $locator |
|
39 | 40 | */ |
40 | 41 | public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION) |
41 | 42 | { |
@@ -241,6 +242,9 @@ discard block |
||
241 | 242 | $class->addIndex($keys, $options); |
242 | 243 | } |
243 | 244 | |
245 | + /** |
|
246 | + * @param string $type |
|
247 | + */ |
|
244 | 248 | private function addEmbedMapping(ClassMetadataInfo $class, $embed, $type) |
245 | 249 | { |
246 | 250 | $attributes = $embed->attributes(); |
@@ -278,6 +282,9 @@ discard block |
||
278 | 282 | $this->addFieldMapping($class, $mapping); |
279 | 283 | } |
280 | 284 | |
285 | + /** |
|
286 | + * @param string $type |
|
287 | + */ |
|
281 | 288 | private function addReferenceMapping(ClassMetadataInfo $class, $reference, $type) |
282 | 289 | { |
283 | 290 | $cascade = array_keys((array) $reference->cascade); |