1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php declare(strict_types=1);
- namespace PhpParser\Node;
- use PhpParser\NodeAbstract;
- class Arg extends NodeAbstract {
-
- public ?Identifier $name;
-
- public Expr $value;
-
- public bool $byRef;
-
- public bool $unpack;
-
- public function __construct(
- Expr $value, bool $byRef = false, bool $unpack = false, array $attributes = [],
- ?Identifier $name = null
- ) {
- $this->attributes = $attributes;
- $this->name = $name;
- $this->value = $value;
- $this->byRef = $byRef;
- $this->unpack = $unpack;
- }
- public function getSubNodeNames(): array {
- return ['name', 'value', 'byRef', 'unpack'];
- }
- public function getType(): string {
- return 'Arg';
- }
- }
|