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