DumperCollection
class DumperCollection implements IteratorAggregate
Collection of routes.
Methods
(DumperCollection|DumperRoute)[]
all()
Returns the children routes and collections.
setAll(array $children)
Sets children.
getIterator()
Returns an iterator over the children.
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
at line line 43
(DumperCollection|DumperRoute)[]
all()
Returns the children routes and collections.
at line line 53
add(DumperRoute|DumperCollection $child)
Adds a route or collection.
at line line 66
setAll(array $children)
Sets children.
at line line 81
Iterator
getIterator()
Returns an iterator over the children.
at line line 91
DumperCollection
getRoot()
Returns the root of the collection.
at line line 123
bool
hasAttribute(string $name)
Returns true if the attribute is defined.
at line line 136
mixed
getAttribute(string $name, mixed $default = null)
Returns an attribute by name.
at line line 147
setAttribute(string $name, mixed $value)
Sets an attribute by name.
at line line 157
setAttributes(array $attributes)
Sets multiple attributes.