Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
60 | public function parseLiteral($valueNode, ?array $variables = null) |
||
61 | { |
||
62 | if (!property_exists($valueNode, 'value')) { |
||
63 | throw new Error( |
||
64 | 'Can only parse literals that contain a value, got '.GraphQLUtils::printSafeJson($valueNode) |
||
65 | ); |
||
66 | } |
||
67 | |||
68 | return $this->decodeJSON($valueNode->value); |
||
69 | } |
||
89 |