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