Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 91.67% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Json extends ConditionValue |
||
22 | { |
||
23 | 6 | public function __construct(string $string) |
|
26 | 6 | } |
|
27 | |||
28 | 6 | public function asString(): string |
|
29 | { |
||
30 | 6 | return json_encode( |
|
31 | 6 | $this->get(), |
|
32 | 6 | JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_PRESERVE_ZERO_FRACTION |
|
33 | ); |
||
34 | } |
||
35 | |||
36 | 6 | private function getDecodedJson(string $string): array |
|
44 | } |
||
45 | } |
||
46 |