class DumperCollection implements IteratorAggregate
Collection of routes.
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. |
Returns the children routes and collections.
Adds a route or collection.
Sets children.
Returns an iterator over the children.
Returns the root of the collection.
Returns true if the attribute is defined.
Returns an attribute by name.
Sets an attribute by name.
Sets multiple attributes.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.html