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