public function add(ParsedRoute $route)
    {
        foreach ($route->getMethods() as $method) {
            $this->routes[$method][] = $route;

            if (!empty($route->getName())) {
                $this->namedRoutes[$route->getName()] =& $route;
            }
        }
    }
public function add(ParsedRoute $route)
    {
        foreach ($route->getMethods() as $method) {
            $this->routes[$method][] = $route;

            if (!empty($route->getName())) {
                $this->namedRoutes[$route->getName()] =& $route;
            }
        }
    }
public function add ( ParsedRoute $ route ) { foreach ( $ route -> getMethods ( ) as $ method ) { $ this -> routes [ $ method ] [ ] = $ route ; if ( ! empty ( $ route -> getName ( ) ) ) { $ this -> namedRoutes [ $ route -> getName ( ) ] = & $ route ; } } }
Adds a route to the collection

@param ParsedRoute $route The route to add
Adds a route to the collection