Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | protected function compile(string $statement): string |
||
22 | { |
||
23 | $wrappedPath = $this->getWrappedPath($statement); |
||
24 | $attribute = \array_pop($wrappedPath); |
||
25 | |||
26 | if (!empty($wrappedPath)) { |
||
27 | return $this->getField($statement) . '->' . \implode('->', $wrappedPath) . '->>' . $attribute; |
||
28 | } |
||
29 | |||
30 | return $this->getField($statement) . '->>' . $attribute; |
||
31 | } |
||
33 |