| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 35 | public function build(array $ast): NodeInterface  | 
            ||
| 36 |     { | 
            ||
| 37 |         if (!isset($ast['kind'])) { | 
            ||
| 38 |             throw new GraphQLError(sprintf('Nodes must specify a kind, got %s', json_encode($ast))); | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 41 | $builder = $this->getBuilder($ast['kind']);  | 
            ||
| 42 | |||
| 43 |         if ($builder !== null) { | 
            ||
| 44 | return $builder->build($ast);  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 |         throw new GraphQLError(sprintf('Node of kind "%s" not supported.', $ast['kind'])); | 
            ||
| 48 | }  | 
            ||
| 65 |