@@ -17,6 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * {@inheritDoc} |
| 20 | + * @param \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator $locator |
|
| 20 | 21 | */ |
| 21 | 22 | public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION) |
| 22 | 23 | { |
@@ -219,6 +220,9 @@ discard block |
||
| 219 | 220 | $class->addIndex($keys, $options); |
| 220 | 221 | } |
| 221 | 222 | |
| 223 | + /** |
|
| 224 | + * @param string $type |
|
| 225 | + */ |
|
| 222 | 226 | private function addEmbedMapping(ClassMetadata $class, $embed, $type) |
| 223 | 227 | { |
| 224 | 228 | $attributes = $embed->attributes(); |
@@ -256,6 +260,9 @@ discard block |
||
| 256 | 260 | $this->addFieldMapping($class, $mapping); |
| 257 | 261 | } |
| 258 | 262 | |
| 263 | + /** |
|
| 264 | + * @param string $type |
|
| 265 | + */ |
|
| 259 | 266 | private function addReferenceMapping(ClassMetadata $class, $reference, $type) |
| 260 | 267 | { |
| 261 | 268 | $cascade = array_keys((array) $reference->cascade); |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | * the unique index. Additionally, the background option is only |
| 385 | 385 | * relevant to index creation and is not considered. |
| 386 | 386 | * |
| 387 | - * @param array|IndexInfo $mongoIndex Mongo index data. |
|
| 387 | + * @param IndexInfo $mongoIndex Mongo index data. |
|
| 388 | 388 | * @param array $documentIndex Document index data. |
| 389 | 389 | * @return bool True if the indexes are equivalent, otherwise false. |
| 390 | 390 | */ |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | /** |
| 526 | 526 | * @param string $documentName |
| 527 | 527 | * |
| 528 | - * @return array |
|
| 528 | + * @return string |
|
| 529 | 529 | */ |
| 530 | 530 | private function runShardCollectionCommand($documentName) |
| 531 | 531 | { |
@@ -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 |
@@ -968,7 +968,7 @@ discard block |
||
| 968 | 968 | } |
| 969 | 969 | |
| 970 | 970 | /** |
| 971 | - * @return array |
|
| 971 | + * @return string|null |
|
| 972 | 972 | */ |
| 973 | 973 | public function getShardKey() |
| 974 | 974 | { |
@@ -1068,7 +1068,7 @@ discard block |
||
| 1068 | 1068 | /** |
| 1069 | 1069 | * Gets the ReflectionProperties of the mapped class. |
| 1070 | 1070 | * |
| 1071 | - * @return array An array of ReflectionProperty instances. |
|
| 1071 | + * @return \ReflectionProperty[] An array of ReflectionProperty instances. |
|
| 1072 | 1072 | */ |
| 1073 | 1073 | public function getReflectionProperties() |
| 1074 | 1074 | { |
@@ -1619,7 +1619,7 @@ discard block |
||
| 1619 | 1619 | * |
| 1620 | 1620 | * @param string $dbFieldName |
| 1621 | 1621 | * |
| 1622 | - * @return array |
|
| 1622 | + * @return string |
|
| 1623 | 1623 | * @throws MappingException |
| 1624 | 1624 | */ |
| 1625 | 1625 | public function getFieldMappingByDbFieldName($dbFieldName) |
@@ -2136,7 +2136,7 @@ discard block |
||
| 2136 | 2136 | * - reflClass (ReflectionClass) |
| 2137 | 2137 | * - reflFields (ReflectionProperty array) |
| 2138 | 2138 | * |
| 2139 | - * @return array The names of all the fields that should be serialized. |
|
| 2139 | + * @return string[] The names of all the fields that should be serialized. |
|
| 2140 | 2140 | */ |
| 2141 | 2141 | public function __sleep() |
| 2142 | 2142 | { |