| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function __construct($data, Node $parent) |
||
| 25 | { |
||
| 26 | $this->parent = &$parent; |
||
| 27 | |||
| 28 | foreach ($data['content'] as $node) { |
||
| 29 | if ($node['type'] === 'list_content') { |
||
| 30 | foreach ($node['content'] as $subnode) { |
||
| 31 | $this->subnodes[] = self::getSubNode($subnode, $this); |
||
| 32 | } |
||
| 33 | continue; |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->subnodes[] = self::getSubNode($node, $this); |
||
| 37 | } |
||
| 63 |