@@ -31,7 +31,6 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Combines any number of criteria arrays as clauses of an "$and" query. |
| 33 | 33 | * |
| 34 | - * @param array $criteria,... Any number of query criteria arrays |
|
| 35 | 34 | * @return array |
| 36 | 35 | */ |
| 37 | 36 | public function merge(/* array($field => $value), ... */) |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * @param boolean $hydrate |
| 98 | 98 | * @param boolean $refresh |
| 99 | 99 | * @param array $primers |
| 100 | - * @param null $requireIndexes |
|
| 100 | + * @param boolean $requireIndexes |
|
| 101 | 101 | */ |
| 102 | 102 | public function __construct(DocumentManager $dm, ClassMetadata $class, Collection $collection, array $query = array(), array $options = array(), $hydrate = true, $refresh = false, array $primers = array(), $requireIndexes = null) |
| 103 | 103 | { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * Gets an array of the unindexed fields in this query. |
| 208 | 208 | * |
| 209 | - * @return array |
|
| 209 | + * @return string |
|
| 210 | 210 | */ |
| 211 | 211 | public function getUnindexedFields() |
| 212 | 212 | { |
@@ -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 | { |
@@ -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) { |
@@ -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) |