for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Humbug\PhpScoper\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\NodeVisitorAbstract;
final class FullyQualifiedNamespaceUseScoperNodeVisitor extends NodeVisitorAbstract
{
/**
* @var string
*/
private $prefix;
public function __construct($prefix)
$this->prefix = $prefix;
}
* @inheritdoc
public function enterNode(Node $node)
if ($node instanceof FullyQualified) {
return new Name(Name::concat($this->prefix, (string) $node));
return $node;