| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Date extends ScalarType |
||
| 16 | { |
||
| 17 | // phpcs:disable SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingAnyTypeHint |
||
| 18 | public string|null $description = 'The `Date` scalar type represents datetime data.' |
||
| 19 | . 'The format is e.g. 2004-02-12'; |
||
| 20 | |||
| 21 | public function parseLiteral(ASTNode $valueNode, array|null $variables = null): string |
||
| 31 | } |
||
| 32 | |||
| 33 | public function parseValue(mixed $value): PHPDateTime |
||
| 40 | } |
||
| 41 | |||
| 42 | public function serialize(mixed $value): string|null |
||
| 51 |