@@ -70,6 +70,9 @@ |
||
70 | 70 | return $hydrator($data[$hydrators->getRoot($class)], $hydrators); |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param \DOMDocument $parent |
|
75 | + */ |
|
73 | 76 | private function parse(\DOMDocument $doc, $parent = null) |
74 | 77 | { |
75 | 78 | $ret = array(); |
@@ -8,6 +8,9 @@ discard block |
||
8 | 8 | private $class; |
9 | 9 | private $objects; |
10 | 10 | |
11 | + /** |
|
12 | + * @param string $class |
|
13 | + */ |
|
11 | 14 | public function __construct($class, array $objects) |
12 | 15 | { |
13 | 16 | if(false === class_exists($class)) { |
@@ -36,6 +39,9 @@ discard block |
||
36 | 39 | return $object; |
37 | 40 | } |
38 | 41 | |
42 | + /** |
|
43 | + * @param string $name |
|
44 | + */ |
|
39 | 45 | private function computeValue($name, $data, HydratorContainerInterface $hydrators) |
40 | 46 | { |
41 | 47 | if(false === array_key_exists($name, $this->objects)) { |
@@ -8,12 +8,10 @@ |
||
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; |
15 | 14 | use Thunder\Serializard\NormalizerContext\NormalizerContextInterface; |
16 | -use Thunder\Serializard\NormalizerContext\ParentNormalizerContext; |
|
17 | 15 | use Thunder\Serializard\Serializard; |
18 | 16 | use Thunder\Serializard\Tests\Fake\Context\FakeNormalizerContext; |
19 | 17 | use Thunder\Serializard\Tests\Fake\FakeArticle; |