@@ -570,7 +570,7 @@ |
||
570 | 570 | /** |
571 | 571 | * @param string $documentName |
572 | 572 | * |
573 | - * @return array |
|
573 | + * @return string |
|
574 | 574 | */ |
575 | 575 | private function runShardCollectionCommand($documentName) |
576 | 576 | { |
@@ -219,6 +219,9 @@ discard block |
||
219 | 219 | $class->addIndex($keys, $options); |
220 | 220 | } |
221 | 221 | |
222 | + /** |
|
223 | + * @param string $type |
|
224 | + */ |
|
222 | 225 | private function addEmbedMapping(ClassMetadata $class, $embed, $type) |
223 | 226 | { |
224 | 227 | $attributes = $embed->attributes(); |
@@ -256,6 +259,9 @@ discard block |
||
256 | 259 | $this->addFieldMapping($class, $mapping); |
257 | 260 | } |
258 | 261 | |
262 | + /** |
|
263 | + * @param string $type |
|
264 | + */ |
|
259 | 265 | private function addReferenceMapping(ClassMetadata $class, $reference, $type) |
260 | 266 | { |
261 | 267 | $cascade = array_keys((array) $reference->cascade); |
@@ -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 | { |
@@ -13,6 +13,7 @@ discard block |
||
13 | 13 | * |
14 | 14 | * @param mixed $id File ID |
15 | 15 | * @param resource $destination Writable Stream |
16 | + * @return void |
|
16 | 17 | */ |
17 | 18 | public function downloadToStream($id, $destination): void; |
18 | 19 | |
@@ -36,7 +37,6 @@ discard block |
||
36 | 37 | /** |
37 | 38 | * Writes the contents of a file to a GridFS file. |
38 | 39 | * |
39 | - * @param string $path |
|
40 | 40 | * @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. |
41 | 41 | * @param object|null $metadata |
42 | 42 | * @return object The newly created GridFS file |