@@ -170,6 +170,10 @@ |
||
170 | 170 | return $this; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param string $fieldName |
|
175 | + * @param ClassMetadata $class |
|
176 | + */ |
|
173 | 177 | protected function prepareFieldName($fieldName, ?ClassMetadata $class = null) |
174 | 178 | { |
175 | 179 | if (! $class) { |
@@ -939,7 +939,7 @@ discard block |
||
939 | 939 | } |
940 | 940 | |
941 | 941 | /** |
942 | - * @return array |
|
942 | + * @return string|null |
|
943 | 943 | */ |
944 | 944 | public function getShardKey() |
945 | 945 | { |
@@ -1039,7 +1039,7 @@ discard block |
||
1039 | 1039 | /** |
1040 | 1040 | * Gets the ReflectionProperties of the mapped class. |
1041 | 1041 | * |
1042 | - * @return array An array of ReflectionProperty instances. |
|
1042 | + * @return \ReflectionProperty[] An array of ReflectionProperty instances. |
|
1043 | 1043 | */ |
1044 | 1044 | public function getReflectionProperties() |
1045 | 1045 | { |
@@ -1352,6 +1352,7 @@ discard block |
||
1352 | 1352 | * {@inheritDoc} |
1353 | 1353 | * |
1354 | 1354 | * Checks whether the class has a mapped association (embed or reference) with the given field name. |
1355 | + * @param string $fieldName |
|
1355 | 1356 | */ |
1356 | 1357 | public function hasAssociation($fieldName) |
1357 | 1358 | { |
@@ -1588,7 +1589,7 @@ discard block |
||
1588 | 1589 | * |
1589 | 1590 | * @param string $dbFieldName |
1590 | 1591 | * |
1591 | - * @return array |
|
1592 | + * @return string |
|
1592 | 1593 | * @throws MappingException |
1593 | 1594 | */ |
1594 | 1595 | public function getFieldMappingByDbFieldName($dbFieldName) |
@@ -2098,7 +2099,7 @@ discard block |
||
2098 | 2099 | * - reflClass (ReflectionClass) |
2099 | 2100 | * - reflFields (ReflectionProperty array) |
2100 | 2101 | * |
2101 | - * @return array The names of all the fields that should be serialized. |
|
2102 | + * @return string[] The names of all the fields that should be serialized. |
|
2102 | 2103 | */ |
2103 | 2104 | public function __sleep() |
2104 | 2105 | { |
@@ -228,7 +228,7 @@ |
||
228 | 228 | * Get the types array map which holds all registered types and the corresponding |
229 | 229 | * type class |
230 | 230 | * |
231 | - * @return array $typesMap |
|
231 | + * @return string[] $typesMap |
|
232 | 232 | */ |
233 | 233 | public static function getTypesMap() |
234 | 234 | { |
@@ -21,6 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @param mixed $id File ID |
23 | 23 | * @param resource $destination Writable Stream |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function downloadToStream($id, $destination): void; |
26 | 27 | |
@@ -35,7 +36,6 @@ discard block |
||
35 | 36 | * Writes the contents of a readable stream to a GridFS file. |
36 | 37 | * |
37 | 38 | * @param resource $source Readable stream |
38 | - * @param object|null $metadata |
|
39 | 39 | * @return object The newly created GridFS file |
40 | 40 | */ |
41 | 41 | public function uploadFromStream(string $filename, $source, ?UploadOptions $uploadOptions = null); |
@@ -43,9 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Writes the contents of a file to a GridFS file. |
45 | 45 | * |
46 | - * @param string $path |
|
47 | 46 | * @param string|null $filename The filename to upload the file with. If no filename is provided, the name of the source file will be used. |
48 | - * @param object|null $metadata |
|
49 | 47 | * @return object The newly created GridFS file |
50 | 48 | */ |
51 | 49 | public function uploadFromFile(string $source, ?string $filename = null, ?UploadOptions $uploadOptions = null); |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | * @param int $lockMode |
511 | 511 | * @param array $sort Sort array for Cursor::sort() |
512 | 512 | * @throws LockException |
513 | - * @return object|null The loaded and managed document instance or null if no document was found |
|
513 | + * @return null|\Doctrine\ODM\MongoDB\object The loaded and managed document instance or null if no document was found |
|
514 | 514 | * @todo Check identity map? loadById method? Try to guess whether $criteria is the id? |
515 | 515 | */ |
516 | 516 | public function load($criteria, $document = null, array $hints = [], $lockMode = 0, ?array $sort = null) |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | * @param object $result The query result. |
671 | 671 | * @param object $document The document object to fill, if any. |
672 | 672 | * @param array $hints Hints for document creation. |
673 | - * @return object The filled and managed document object or NULL, if the query result is empty. |
|
673 | + * @return null|\Doctrine\ODM\MongoDB\object The filled and managed document object or NULL, if the query result is empty. |
|
674 | 674 | */ |
675 | 675 | private function createDocument($result, $document = null, array $hints = []) |
676 | 676 | { |
@@ -1093,7 +1093,7 @@ discard block |
||
1093 | 1093 | * @see Expr::mod() |
1094 | 1094 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
1095 | 1095 | * @param float|int $divisor |
1096 | - * @param float|int $remainder |
|
1096 | + * @param integer $remainder |
|
1097 | 1097 | * @return $this |
1098 | 1098 | */ |
1099 | 1099 | public function mod($divisor, $remainder = 0) |
@@ -1257,7 +1257,7 @@ discard block |
||
1257 | 1257 | * If a custom callable is used, its signature should conform to the default |
1258 | 1258 | * Closure defined in {@link ReferencePrimer::__construct()}. |
1259 | 1259 | * |
1260 | - * @param bool|callable $primer |
|
1260 | + * @param boolean $primer |
|
1261 | 1261 | * @return $this |
1262 | 1262 | * @throws \InvalidArgumentException If $primer is not boolean or callable. |
1263 | 1263 | */ |
@@ -1650,7 +1650,7 @@ discard block |
||
1650 | 1650 | * field name (key) and order (value) pairs. |
1651 | 1651 | * |
1652 | 1652 | * @param array|string $fieldName Field name or array of field/order pairs |
1653 | - * @param int|string $order Field order (if one field is specified) |
|
1653 | + * @param integer $order Field order (if one field is specified) |
|
1654 | 1654 | * @return $this |
1655 | 1655 | */ |
1656 | 1656 | public function sort($fieldName, $order = 1) |