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