| 1 | <?php |
||
| 10 | final class FullyQualifiedNamespaceUseScoperNodeVisitor extends NodeVisitorAbstract |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $prefix; |
||
| 16 | |||
| 17 | public function __construct($prefix) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | public function enterNode(Node $node) |
||
| 26 | { |
||
| 27 | if ($node instanceof FullyQualified) { |
||
| 28 | return new Name(Name::concat($this->prefix, (string) $node)); |
||
| 29 | } |
||
| 34 |