src/RouteCollection.php
public function add(Route $route): void
    {
        $this->routes[] = $route;

        if ($route->name !== null) {
            $this->namedRoutes[$route->name] =& $route;
        }
    }
public function add(Route $route): void
    {
        $this->routes[] = $route;

        if ($route->name !== null) {
            $this->namedRoutes[$route->name] =& $route;
        }
    }
Adds a route to the collection

@param Route $route The route to add