class RouteCollection implements IteratorAggregate, Countable
A RouteCollection represents a set of Route instances. When adding a route at the end of the collection, an existing route with the same name is removed first. So there can only be one route with a given name.
Methods
__clone()
ArrayIterator|Route[] getIterator() Gets the current RouteCollection as an Iterator that includes all routes.
int count() Gets the number of Routes in this collection.
add(string $name,