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.
DumperCollection[]|DumperRoute[] |
Adds a route or collection.
DumperRoute|DumperCollection | $child | The route or collection |
Sets children.
array | $children | The children |
Returns an iterator over the children.
Iterator|DumperCollection[]|DumperRoute[] | The iterator |
Returns the root of the collection.
DumperCollection | The root collection |
Returns true if the attribute is defined.
string | $name | The attribute name |
bool | true if the attribute is defined, false otherwise |
Returns an attribute by name.
string | $name | The attribute name |
mixed | $default | Default value is the attribute doesn't exist |
mixed | The attribute value |
Sets an attribute by name.
string | $name | The attribute name |
mixed | $value | The attribute value |
Sets multiple attributes.
array | $attributes | The attributes |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.html