| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | final class MicrosoftTolerantPhpParser implements ImporterInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @param SourceFileNode $data |
||
| 26 | * |
||
| 27 | * @throws Exception |
||
| 28 | */ |
||
| 29 | 1 | public function import($data): NodeInterface |
|
| 30 | { |
||
| 31 | 1 | return $this->parseNode($this->createNode(['label' => 'root']), $data); |
|
| 32 | } |
||
| 33 | |||
| 34 | 1 | private function createNode(array $attributes): AttributeNodeInterface |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param Node ...$astNodes |
||
| 41 | */ |
||
| 42 | 1 | private function parseNode(AttributeNodeInterface $parent, Node ...$astNodes): NodeInterface |
|
| 62 |