function Arg::__construct
Constructs a function call argument node.
Parameters
Expr $value Value to pass:
bool $byRef Whether to pass by ref:
bool $unpack Whether to unpack the argument:
array<string, mixed> $attributes Additional attributes:
Identifier|null $name Parameter name (for named parameters):
Overrides NodeAbstract::__construct
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Arg.php, line 26
Class
Namespace
PhpParser\NodeCode
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;
}