Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function getArray(AbstractNode $node, $embedded = false) |
||
16 | { |
||
17 | if (!$node instanceof ArrayNode) { |
||
18 | throw new \InvalidArgumentException("Invalid node type!"); |
||
19 | } |
||
20 | |||
21 | $array = array(); |
||
22 | |||
23 | foreach ($node->getNodes() as $index => $childNode) { |
||
24 | $array[$index] = $this->getMainHandler()->getArray($childNode, true); |
||
25 | } |
||
26 | |||
27 | return $array; |
||
28 | } |
||
29 | |||
39 |