1: | <?php declare(strict_types=1); |
2: | |
3: | namespace PhpParser\Node; |
4: | |
5: | use PhpParser\Node\VariadicPlaceholder; |
6: | use PhpParser\NodeAbstract; |
7: | |
8: | class Arg extends NodeAbstract |
9: | { |
10: | |
11: | public $name; |
12: | |
13: | public $value; |
14: | |
15: | public $byRef; |
16: | |
17: | public $unpack; |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | |
28: | public function __construct( |
29: | Expr $value, bool $byRef = false, bool $unpack = false, array $attributes = [], |
30: | ?Identifier $name = null |
31: | ) { |
32: | $this->attributes = $attributes; |
33: | $this->name = $name; |
34: | $this->value = $value; |
35: | $this->byRef = $byRef; |
36: | $this->unpack = $unpack; |
37: | } |
38: | |
39: | public function getSubNodeNames() : array { |
40: | return ['name', 'value', 'byRef', 'unpack']; |
41: | } |
42: | |
43: | public function getType() : string { |
44: | return 'Arg'; |
45: | } |
46: | } |
47: | |