1: | <?php declare(strict_types=1); |
2: | |
3: | namespace PhpParser\Node\Stmt; |
4: | |
5: | use PhpParser\Node; |
6: | |
7: | class Namespace_ extends Node\Stmt { |
8: | |
9: | public const KIND_SEMICOLON = 1; |
10: | public const KIND_BRACED = 2; |
11: | |
12: | |
13: | public ?Node\Name $name; |
14: | |
15: | public $stmts; |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: | public function __construct(?Node\Name $name = null, ?array $stmts = [], array $attributes = []) { |
25: | $this->attributes = $attributes; |
26: | $this->name = $name; |
27: | $this->stmts = $stmts; |
28: | } |
29: | |
30: | public function getSubNodeNames(): array { |
31: | return ['name', 'stmts']; |
32: | } |
33: | |
34: | public function getType(): string { |
35: | return 'Stmt_Namespace'; |
36: | } |
37: | } |
38: | |