@@ -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)) { |