@@ -8,7 +8,6 @@ |
||
8 | 8 | use Thunder\Serializard\FormatContainer\FormatContainer; |
9 | 9 | use Thunder\Serializard\Hydrator\ReflectionHydrator; |
10 | 10 | use Thunder\Serializard\HydratorContainer\FallbackHydratorContainer; |
11 | -use Thunder\Serializard\HydratorContainer\HydratorContainerInterface as Hydrators; |
|
12 | 11 | use Thunder\Serializard\HydratorContainer\HydratorContainerInterface; |
13 | 12 | use Thunder\Serializard\Normalizer\ReflectionNormalizer; |
14 | 13 | use Thunder\Serializard\NormalizerContainer\FallbackNormalizerContainer; |
@@ -27,6 +27,10 @@ discard block |
||
27 | 27 | } |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @param string $alias |
|
32 | + * @param string $class |
|
33 | + */ |
|
30 | 34 | public function addAlias($alias, $class) |
31 | 35 | { |
32 | 36 | $handler = $this->getHandler($class); |
@@ -62,6 +66,9 @@ discard block |
||
62 | 66 | return null; |
63 | 67 | } |
64 | 68 | |
69 | + /** |
|
70 | + * @param string $class |
|
71 | + */ |
|
65 | 72 | public function hydrate($class, array $data) |
66 | 73 | { |
67 | 74 | return call_user_func($this->getHandler($class), $data, $this); |