| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | protected function registerData(array &$data) |
||
| 17 | { |
||
| 18 | if (empty($this->parent)) { |
||
| 19 | throw new LoaderException("Unable to register data tree, parent is missing"); |
||
| 20 | } |
||
| 21 | |||
| 22 | //Mounting parsed data into parent under defined container |
||
| 23 | $this->parent->mountArray( |
||
| 24 | $this->container, |
||
| 25 | $this->referenceKey, |
||
| 26 | $data[$this->localKey], |
||
| 27 | $data |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | } |