| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class ScalarString extends Token |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Whether this token is an object key. |
||
| 15 | * |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | private bool $isKey = false; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Mutate the given state |
||
| 22 | * |
||
| 23 | * @param State $state |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | 100 | public function mutateState(State $state): void |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Determine whether this token ends a JSON chunk |
||
| 39 | * |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | 100 | public function endsChunk(): bool |
|
| 47 |