@@ -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 | { |
@@ -193,7 +195,7 @@ discard block |
||
193 | 195 | * check the interfaces of the class. |
194 | 196 | * |
195 | 197 | * @param mixed $source |
196 | - * @param mixed $targetType |
|
198 | + * @param string $targetType |
|
197 | 199 | * @param array $currentPropertyPath |
198 | 200 | * @return array |
199 | 201 | */ |
@@ -221,7 +223,7 @@ discard block |
||
221 | 223 | * function `getInstanceClassName()`. |
222 | 224 | * |
223 | 225 | * @param mixed $source |
224 | - * @param mixed $targetType |
|
226 | + * @param string $targetType |
|
225 | 227 | * @param array $currentPropertyPath |
226 | 228 | * @return ConfigurationObjectInterface |
227 | 229 | */ |
@@ -250,7 +252,7 @@ discard block |
||
250 | 252 | * |
251 | 253 | * @param mixed $source |
252 | 254 | * @param mixed $targetType |
253 | - * @param mixed $configuration |
|
255 | + * @param PropertyMappingConfigurationInterface $configuration |
|
254 | 256 | * @return TypeConverterInterface |
255 | 257 | * @throws TypeConverterException |
256 | 258 | */ |
@@ -292,13 +294,17 @@ discard block |
||
292 | 294 | /** |
293 | 295 | * Internal function that fetches the properties of a class. |
294 | 296 | * |
295 | - * @param $targetType |
|
297 | + * @param string $targetType |
|
296 | 298 | * @return array |
297 | 299 | */ |
298 | 300 | protected function getProperties($targetType) |
299 | 301 | { |
300 | 302 | $properties = ReflectionService::get()->getClassReflection($targetType)->getProperties(); |
301 | 303 | $propertiesKeys = array_map( |
304 | + |
|
305 | + /** |
|
306 | + * @param string $propertyReflection |
|
307 | + */ |
|
302 | 308 | function (PropertyReflection $propertyReflection) { |
303 | 309 | return $propertyReflection->getName(); |
304 | 310 | }, |