class DumperCollection implements IteratorAggregate
Collection of routes.
Methods
DumperCollection[]|DumperRoute[] | all() Returns the children routes and collections. | |
add(DumperRoute|DumperCollection $child) Adds a route or collection. | ||
setAll(array $children) Sets children. | ||
Iterator|DumperCollection[]|DumperRoute[] | getIterator() Returns an iterator over the children. | |
DumperCollection | getRoot() Returns the root of the collection. | |
bool | hasAttribute(string $name) Returns true if the attribute is defined. | |
mixed | getAttribute(string $name, mixed $default = null) Returns an attribute by name. | |
setAttribute(string $name, mixed $value) Sets an attribute by name. | ||
setAttributes(array $attributes) Sets multiple attributes. |
Details
DumperCollection[]|DumperRoute[] all()
Returns the children routes and collections.
add(DumperRoute|DumperCollection $child)
Adds a route or collection.
setAll(array $children)
Sets children.
Iterator|DumperCollection[]|DumperRoute[] getIterator()
Returns an iterator over the children.
DumperCollection getRoot()
Returns the root of the collection.
bool hasAttribute(string $name)
Returns true if the attribute is defined.
mixed getAttribute(string $name, mixed $default = null)
Returns an attribute by name.
setAttribute(string $name, mixed $value)
Sets an attribute by name.
setAttributes(array $attributes)
Sets multiple attributes.
Please login to continue.