ListAccessor
extends CallableAccessor
in package
FinalYes
A field holding nodes keyed by name.
Table of Contents
Properties
- $name : string
Methods
- __construct() : mixed
- items() : Node[]
- removeAt() : Node
- replaceAt() : Node
Properties
$name read-only
public
string
$name
Methods
__construct()
public
__construct(string $name, callable(TOwner): TChild $get, callable(TOwner, TChild): TOwner $set[, bool $nullable = false ]) : mixed
Parameters
- $name : string
- $get : callable(TOwner): TChild
- $set : callable(TOwner, TChild): TOwner
- $nullable : bool = false
items()
public
items(Node $owner) : Node[]
Parameters
- $owner : Node
Return values
Node[]removeAt()
public
removeAt(Node $owner, int|string|null $key) : Node
Parameters
- $owner : Node
- $key : int|string|null
Return values
NodereplaceAt()
public
replaceAt(Node $owner, int|string|null $key, Node $node) : Node