| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | protected function compile(string $statement): string |
||
| 35 | { |
||
| 36 | $wrappedPath = $this->getWrappedPath($statement); |
||
| 37 | $attribute = \array_pop($wrappedPath); |
||
| 38 | $field = $this->getField($statement); |
||
| 39 | |||
| 40 | $column = !empty($wrappedPath) |
||
| 41 | ? $field . '->' . \implode('->', $wrappedPath) . '->' . $attribute |
||
| 42 | : $field . '->' . $attribute; |
||
| 43 | |||
| 44 | return \sprintf('jsonb_array_length((%s)::jsonb) %s ?', $column, $this->operator); |
||
| 45 | } |
||
| 47 |