ConstExprArrayItemNode
in package
implements
ConstExprNode
Uses
NodeAttributes
Table of Contents
Interfaces
Properties
- $key : ConstExprNode|null
- $value : ConstExprNode
- $attributes : array<string, mixed>
Methods
- __construct() : mixed
- __toString() : string
- getAttribute() : mixed
- hasAttribute() : bool
- setAttribute() : void
Properties
$key
public
ConstExprNode|null
$key
$value
public
ConstExprNode
$value
$attributes
private
array<string, mixed>
$attributes
= []
Methods
__construct()
public
__construct(ConstExprNode|null $key, ConstExprNode $value) : mixed
Parameters
- $key : ConstExprNode|null
- $value : ConstExprNode
__toString()
public
__toString() : string
Return values
stringgetAttribute()
public
getAttribute(string $key) : mixed
Parameters
- $key : string
hasAttribute()
public
hasAttribute(string $key) : bool
Parameters
- $key : string
Return values
boolsetAttribute()
public
setAttribute(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed