| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 16 | abstract class PostgresJsonExpression extends JsonExpression |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @param non-empty-string $statement |
||
|
|
|||
| 20 | * |
||
| 21 | * @return non-empty-string |
||
| 22 | */ |
||
| 23 | protected function getField(string $statement): string |
||
| 24 | { |
||
| 25 | $path = \explode('->', $statement); |
||
| 26 | |||
| 27 | return $this->quoter->quote(\array_shift($path)); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param non-empty-string $statement |
||
| 32 | * |
||
| 33 | * @return array<non-empty-string> |
||
| 34 | */ |
||
| 35 | protected function getWrappedPath(string $statement, string $quote = "'"): array |
||
| 51 | } |
||
| 52 | } |
||
| 53 |