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