@@ -81,6 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | /** |
83 | 83 | * @inheritdoc |
84 | + * @param string $targetType |
|
84 | 85 | */ |
85 | 86 | public function convert($source, $targetType, PropertyMappingConfigurationInterface $configuration = null) |
86 | 87 | { |
@@ -103,6 +104,7 @@ discard block |
||
103 | 104 | * Will recursively fill all the properties of the configuration object. |
104 | 105 | * |
105 | 106 | * @inheritdoc |
107 | + * @param string $targetType |
|
106 | 108 | */ |
107 | 109 | protected function doMapping($source, $targetType, PropertyMappingConfigurationInterface $configuration, &$currentPropertyPath) |
108 | 110 | { |
@@ -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 ConfigurationObjectInterface $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 | */ |
@@ -320,13 +322,17 @@ discard block |
||
320 | 322 | /** |
321 | 323 | * Internal function that fetches the properties of a class. |
322 | 324 | * |
323 | - * @param $targetType |
|
325 | + * @param string $targetType |
|
324 | 326 | * @return array |
325 | 327 | */ |
326 | 328 | protected function getProperties($targetType) |
327 | 329 | { |
328 | 330 | $properties = ReflectionService::get()->getClassReflection($targetType)->getProperties(); |
329 | 331 | $propertiesKeys = array_map( |
332 | + |
|
333 | + /** |
|
334 | + * @param string $propertyReflection |
|
335 | + */ |
|
330 | 336 | function (PropertyReflection $propertyReflection) { |
331 | 337 | return $propertyReflection->getName(); |
332 | 338 | }, |