Symfony\Component\Routing\Matcher\Dumper\DumperCollection
Collection of routes.
- Author: Arnaud Le Blanc <arnaud.lb@gmail.com>
Synopsis
class DumperCollection
implements
IteratorAggregate
{
- // members
- private DumperCollection|null $parent;
- private array $children;
- private array $attributes;
- // methods
- public array all()
- public void add()
- public void setAll()
- public Iterator getIterator()
- public DumperCollection getRoot()
- protected DumperCollection|null getParent()
- protected void setParent()
- public Boolean hasAttribute()
- public mixed getAttribute()
- public void setAttribute()
- public void setAttributes()
Hierarchy
Extended by
Implements
Members
private
- $attributes — array
- $children — array
- $parent — Symfony\Component\Routing\Matcher\Dumper\DumperCollection|null
Methods
protected
- getParent() — Returns the parent collection.
- setParent() — Sets the parent collection.
public
- add() — Adds a route or collection
- all() — Returns the children routes and collections.
- getAttribute() — Returns an attribute by name.
- getIterator() — Returns an iterator over the children.
- getRoot() — Returns the root of the collection.
- hasAttribute() — Returns true if the attribute is defined.
- setAll() — Sets children.
- setAttribute() — Sets an attribute by name.
- setAttributes() — Sets multiple attributes.