@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | /** |
1006 | 1006 | * Gets the ReflectionProperties of the mapped class. |
1007 | 1007 | * |
1008 | - * @return array An array of ReflectionProperty instances. |
|
1008 | + * @return \ReflectionProperty[] An array of ReflectionProperty instances. |
|
1009 | 1009 | */ |
1010 | 1010 | public function getReflectionProperties() |
1011 | 1011 | { |
@@ -1319,6 +1319,7 @@ discard block |
||
1319 | 1319 | * {@inheritDoc} |
1320 | 1320 | * |
1321 | 1321 | * Checks whether the class has a mapped association (embed or reference) with the given field name. |
1322 | + * @param string $fieldName |
|
1322 | 1323 | */ |
1323 | 1324 | public function hasAssociation($fieldName) |
1324 | 1325 | { |
@@ -1553,7 +1554,7 @@ discard block |
||
1553 | 1554 | * |
1554 | 1555 | * @param string $dbFieldName |
1555 | 1556 | * |
1556 | - * @return array |
|
1557 | + * @return string |
|
1557 | 1558 | * @throws MappingException |
1558 | 1559 | */ |
1559 | 1560 | public function getFieldMappingByDbFieldName($dbFieldName) |
@@ -2066,7 +2067,7 @@ discard block |
||
2066 | 2067 | * - reflClass (ReflectionClass) |
2067 | 2068 | * - reflFields (ReflectionProperty array) |
2068 | 2069 | * |
2069 | - * @return array The names of all the fields that should be serialized. |
|
2070 | + * @return string[] The names of all the fields that should be serialized. |
|
2070 | 2071 | */ |
2071 | 2072 | public function __sleep() |
2072 | 2073 | { |
@@ -239,6 +239,9 @@ discard block |
||
239 | 239 | $class->addIndex($keys, $options); |
240 | 240 | } |
241 | 241 | |
242 | + /** |
|
243 | + * @param string $type |
|
244 | + */ |
|
242 | 245 | private function addEmbedMapping(ClassMetadata $class, $embed, $type) |
243 | 246 | { |
244 | 247 | $attributes = $embed->attributes(); |
@@ -276,6 +279,9 @@ discard block |
||
276 | 279 | $this->addFieldMapping($class, $mapping); |
277 | 280 | } |
278 | 281 | |
282 | + /** |
|
283 | + * @param string $type |
|
284 | + */ |
|
279 | 285 | private function addReferenceMapping(ClassMetadata $class, $reference, $type) |
280 | 286 | { |
281 | 287 | $cascade = array_keys((array) $reference->cascade); |
@@ -492,7 +498,7 @@ discard block |
||
492 | 498 | * list($readPreference, $tags) = $this->transformReadPreference($xml->{read-preference}); |
493 | 499 | * |
494 | 500 | * @param \SimpleXMLElement $xmlReadPreference |
495 | - * @return array |
|
501 | + * @return string |
|
496 | 502 | */ |
497 | 503 | private function transformReadPreference($xmlReadPreference) |
498 | 504 | { |