Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
| NullType | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
| serialize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| parseValue | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| parseLiteral | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\Graphql\Types; |
| 3 | |
| 4 | use GraphQL\Type\Definition\ScalarType; |
| 5 | |
| 6 | final class NullType extends ScalarType |
| 7 | { |
| 8 | public string $name = 'NULL'; |
| 9 | |
| 10 | public function serialize($value) |
| 11 | { |
| 12 | return null; |
| 13 | } |
| 14 | |
| 15 | public function parseValue($value) |
| 16 | { |
| 17 | return null; |
| 18 | } |
| 19 | |
| 20 | public function parseLiteral($valueNode, ?array $variables = null) |
| 21 | { |
| 22 | return null; |
| 23 | } |
| 24 | } |