| Total Complexity | 6 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class DateType extends ScalarType |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $description = 'A date without time, nor timezone.'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Serializes an internal value to include in a response. |
||
| 23 | * |
||
| 24 | * @param mixed $value |
||
| 25 | * |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | public function serialize($value) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Parses an externally provided value (query variable) to use as an input |
||
| 39 | * |
||
| 40 | * @param mixed $value |
||
| 41 | * |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | public function parseValue($value) |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Parses an externally provided literal value to use as an input (e.g. in Query AST) |
||
| 58 | * |
||
| 59 | * @param $ast Node |
||
| 60 | * |
||
| 61 | * @return null|string |
||
| 62 | */ |
||
| 63 | public function parseLiteral($ast, array $variables = null) |
||
| 74 |