| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | abstract class MySQLJsonExpression extends JsonExpression |
||
| 17 | { |
||
| 18 | protected function getQuotes(): string |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Returns the compiled quoted path without the field name. |
||
| 25 | * |
||
| 26 | * @param non-empty-string $statement |
||
|
|
|||
| 27 | * |
||
| 28 | * @return non-empty-string |
||
| 29 | */ |
||
| 30 | protected function getPath(string $statement): string |
||
| 31 | { |
||
| 32 | $parts = \explode('->', $statement, 2); |
||
| 33 | |||
| 34 | return \count($parts) > 1 ? ', ' . $this->wrapPath($parts[1]) : ''; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns the quoted field name. |
||
| 39 | * |
||
| 40 | * @param non-empty-string $statement |
||
| 41 | * |
||
| 42 | * @return non-empty-string |
||
| 43 | */ |
||
| 44 | protected function getField(string $statement): string |
||
| 49 | } |
||
| 50 | } |
||
| 51 |