| Conditions | 4 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function invoke(Node\Stmt\GroupUse $node, PhpFileModelInterface $parent): PhpFileModelInterface |
||
| 25 | { |
||
| 26 | if ($this->validateType($node->type)) { |
||
| 27 | $prefix = $node->prefix->toString(); |
||
| 28 | foreach ($node->uses as $use) { |
||
| 29 | if ($this->validateType($node->type)) { |
||
| 30 | $parent->addUse($use->alias, $prefix . '\\' . $use->name->toString()); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | return $parent; |
||
| 36 | } |
||
| 50 |