Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | protected function push(array &$data) |
||
39 | { |
||
40 | if (empty($this->parent)) { |
||
41 | throw new ParserException("Unable to register data tree, parent is missing"); |
||
42 | } |
||
43 | |||
44 | if (is_null($data[$this->innerKey])) { |
||
45 | //No data was loaded |
||
46 | return; |
||
47 | } |
||
48 | |||
49 | $this->parent->mount( |
||
50 | $this->container, |
||
51 | $this->outerKey, |
||
|
|||
52 | $data[$this->innerKey], |
||
53 | $data |
||
54 | ); |
||
56 | } |