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