Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class InterfaceTypeDefinitionNodeBuilder extends AbstractNodeBuilder |
||
10 | { |
||
11 | /** |
||
12 | * @inheritdoc |
||
13 | */ |
||
14 | public function build(array $ast): NodeInterface |
||
15 | { |
||
16 | return new InterfaceTypeDefinitionNode([ |
||
17 | 'description' => $this->buildNode($ast, 'description'), |
||
18 | 'name' => $this->buildNode($ast, 'name'), |
||
19 | 'directives' => $this->buildNodes($ast, 'directives'), |
||
20 | 'fields' => $this->buildNodes($ast, 'fields'), |
||
21 | 'location' => $this->createLocation($ast), |
||
22 | ]); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | public function supportsBuilder(string $kind): bool |
||
31 | } |
||
32 | } |
||
33 |