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