Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function hydrate(DOMNode $node) |
||
44 | { |
||
45 | $element = Translator::new()->translate($node); |
||
46 | if ($element !== null) { |
||
47 | $hydration = new ElementHydration($this->mapper); |
||
48 | $element->accept($hydration); |
||
49 | |||
50 | return $hydration->isHydrated() ? $hydration->getHydrate()->getFacade()->getObject() : null; |
||
51 | } |
||
52 | |||
53 | return null; |
||
54 | } |
||
55 | |||
78 | } |