function Namespace_::__construct
Same name in this branch
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php \PhpParser\Builder\Namespace_::__construct()
Constructs a namespace node.
Parameters
null|Node\Name $name Name:
null|Node\Stmt[] $stmts Statements:
array<string, mixed> $attributes Additional attributes:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Namespace_.php, line 24
Class
Namespace
PhpParser\Node\StmtCode
public function __construct(?Node\Name $name = null, ?array $stmts = [], array $attributes = []) {
$this->attributes = $attributes;
$this->name = $name;
$this->stmts = $stmts;
}