@@ -83,6 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * @inheritdoc |
86 | + * @param string $targetType |
|
86 | 87 | */ |
87 | 88 | public function convert($source, $targetType, PropertyMappingConfigurationInterface $configuration = null) |
88 | 89 | { |
@@ -105,6 +106,7 @@ discard block |
||
105 | 106 | * Will recursively fill all the properties of the configuration object. |
106 | 107 | * |
107 | 108 | * @inheritdoc |
109 | + * @param string $targetType |
|
108 | 110 | */ |
109 | 111 | protected function doMapping($source, $targetType, PropertyMappingConfigurationInterface $configuration, &$currentPropertyPath) |
110 | 112 | { |
@@ -219,7 +221,7 @@ discard block |
||
219 | 221 | * function `getInstanceClassName()`. |
220 | 222 | * |
221 | 223 | * @param mixed $source |
222 | - * @param mixed $targetType |
|
224 | + * @param string $targetType |
|
223 | 225 | * @param array $currentPropertyPath |
224 | 226 | * @return ConfigurationObjectInterface |
225 | 227 | */ |
@@ -249,7 +251,7 @@ discard block |
||
249 | 251 | * check the interfaces of the class. |
250 | 252 | * |
251 | 253 | * @param mixed $source |
252 | - * @param mixed $targetType |
|
254 | + * @param string $targetType |
|
253 | 255 | * @param array $currentPropertyPath |
254 | 256 | * @return array |
255 | 257 | */ |
@@ -277,7 +279,7 @@ discard block |
||
277 | 279 | * |
278 | 280 | * @param mixed $source |
279 | 281 | * @param mixed $targetType |
280 | - * @param mixed $configuration |
|
282 | + * @param PropertyMappingConfigurationInterface $configuration |
|
281 | 283 | * @return TypeConverterInterface |
282 | 284 | * @throws TypeConverterException |
283 | 285 | */ |
@@ -319,13 +321,17 @@ discard block |
||
319 | 321 | /** |
320 | 322 | * Internal function that fetches the properties of a class. |
321 | 323 | * |
322 | - * @param $targetType |
|
324 | + * @param string $targetType |
|
323 | 325 | * @return array |
324 | 326 | */ |
325 | 327 | protected function getProperties($targetType) |
326 | 328 | { |
327 | 329 | $properties = ReflectionService::get()->getClassReflection($targetType)->getProperties(); |
328 | 330 | $propertiesKeys = array_map( |
331 | + |
|
332 | + /** |
|
333 | + * @param string $propertyReflection |
|
334 | + */ |
|
329 | 335 | function (PropertyReflection $propertyReflection) { |
330 | 336 | return $propertyReflection->getName(); |
331 | 337 | }, |