Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Json extends ScalarType |
||
16 | { |
||
17 | // phpcs:disable SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint |
||
18 | public string|null $description = 'The `JSON` scalar type represents json data.'; |
||
19 | |||
20 | public function parseLiteral(ASTNode $valueNode, array|null $variables = null): string |
||
21 | { |
||
22 | throw new Error('JSON fields are not searchable', $valueNode); |
||
|
|||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return mixed[]|null |
||
27 | * |
||
28 | * @throws Error |
||
29 | */ |
||
30 | public function parseValue(mixed $value): array|null |
||
37 | } |
||
38 | |||
39 | public function serialize(mixed $value): string|null |
||
42 | } |
||
43 | } |
||
44 |