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