$items : array<mixed,mixed>
Represents an easily accessible collection of partials.
The goal for this class is to allow Descriptors to be easily retrieved and set so that interaction in templates becomes easier.
add(\phpDocumentor\Descriptor\DescriptorAbstract|mixed $item) : void
Adds a new item to this collection, generally a Descriptor.
get(string|integer $index, mixed $valueIfEmpty = null) : mixed
Retrieves a specific item from the Collection with its index.
Please note that this method (intentionally) has the side effect that whenever a key does not exist that it will be created with the value provided by the $valueIfEmpty argument. This will allow for easy initialization during tree building operations.
If the index does not exist it will be created with this value and returned.
The contents of the element with the given index and the provided default if the key doesn't exist.