| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | abstract class SQLiteJsonExpression extends JsonExpression |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @param non-empty-string $statement |
||
|
|
|||
| 20 | * |
||
| 21 | * @return non-empty-string |
||
| 22 | */ |
||
| 23 | protected function getPath(string $statement): string |
||
| 24 | { |
||
| 25 | $parts = \explode('->', $statement, 2); |
||
| 26 | |||
| 27 | return \count($parts) > 1 ? ', ' . $this->wrapPath($parts[1]) : ''; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param non-empty-string $statement |
||
| 32 | * |
||
| 33 | * @return non-empty-string |
||
| 34 | */ |
||
| 35 | protected function getField(string $statement): string |
||
| 40 | } |
||
| 41 | } |
||
| 42 |