Total Complexity | 6 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class NikicPhpParser implements ImporterInterface |
||
19 | { |
||
20 | /** |
||
21 | * @param Node[] $data |
||
22 | * |
||
23 | * @throws Exception |
||
24 | */ |
||
25 | 1 | public function import($data): NodeInterface |
|
28 | } |
||
29 | |||
30 | 1 | private function createNode(array $attributes): AttributeNodeInterface |
|
31 | { |
||
32 | 1 | return new AttributeNode($attributes); |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return array<int, Node> |
||
37 | */ |
||
38 | 1 | private function getAllNodeChildren(Node $astNode): array |
|
60 | } |
||
61 | |||
62 | /** |
||
63 | * @param Node ...$astNodes |
||
64 | */ |
||
65 | 1 | private function parseNode(AttributeNodeInterface $parent, Node ...$astNodes): NodeInterface |
|
82 | ); |
||
83 | } |
||
85 |