| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | 264 | protected function push(array &$data): void |
|
| 15 | { |
||
| 16 | 264 | if ($this->parent === null) { |
|
| 17 | throw new ParserException('Unable to register data tree, parent is missing'); |
||
| 18 | } |
||
| 19 | |||
| 20 | 264 | $this->parent->mount( |
|
| 21 | 264 | $this->container, |
|
|
|
|||
| 22 | 264 | $this->indexName, |
|
| 23 | self::LAST_REFERENCE, |
||
| 24 | $data |
||
| 25 | ); |
||
| 28 |