| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class SchemaDefinitionBuilder extends AbstractBuilder |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @inheritdoc |
||
| 14 | */ |
||
| 15 | public function build(array $ast): NodeInterface |
||
| 16 | { |
||
| 17 | return new SchemaDefinitionNode([ |
||
| 18 | 'directives' => $this->buildMany($ast, 'directives'), |
||
| 19 | 'operationTypes' => $this->buildMany($ast, 'operationTypes'), |
||
| 20 | 'location' => $this->createLocation($ast), |
||
| 21 | ]); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function supportsKind(string $kind): bool |
||
| 30 | } |
||
| 31 | } |
||
| 32 |