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