1 | <?php |
||
23 | class NamespaceWrapper extends NodeVisitorAbstract |
||
24 | { |
||
25 | /** |
||
26 | * @var string Name of namespace |
||
27 | */ |
||
28 | private $namespaceName; |
||
29 | |||
30 | /** |
||
31 | * Wrap code in namespace |
||
32 | */ |
||
33 | public function __construct(string $namespaceName) |
||
37 | |||
38 | /** |
||
39 | * {inheritdoc} |
||
40 | * |
||
41 | * @param array $nodes |
||
42 | * @return Namespace_[] |
||
43 | */ |
||
44 | public function beforeTraverse(array $nodes): array |
||
66 | } |
||
67 |