Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | protected function compile(string $statement): string |
||
17 | { |
||
18 | $path = $this->getPath($statement); |
||
19 | |||
20 | if (!empty($path)) { |
||
21 | return \sprintf('%s->%s->>%s', $this->getField($statement), $path, $this->getAttribute($statement)); |
||
22 | } |
||
23 | |||
24 | return \sprintf('%s->>%s', $this->getField($statement), $this->getAttribute($statement)); |
||
25 | } |
||
27 |