function ArrayItem::__construct
Constructs an array item node.
Parameters
Expr $value Value:
null|Expr $key Key:
bool $byRef Whether to assign by reference:
array<string, mixed> $attributes Additional attributes:
Overrides NodeAbstract::__construct
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ ArrayItem.php, line 25
Class
Namespace
PhpParser\NodeCode
public function __construct(Expr $value, ?Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) {
$this->attributes = $attributes;
$this->key = $key;
$this->value = $value;
$this->byRef = $byRef;
$this->unpack = $unpack;
}