public function setRoute(RouteInterface $route): RouterInterface
    {
        $regexp = $route->getRegexp();
        $this->_routes[$regexp] = $route;
        return $this;
    }
public function setRoute(RouteInterface $route): RouterInterface
    {
        $regexp = $route->getRegexp();
        $this->_routes[$regexp] = $route;
        return $this;
    }
public function setRoute ( RouteInterface $ route ) : RouterInterface { $ regexp = $ route -> getRegexp ( ) ; $ this -> _routes [ $ regexp ] = $ route ; return $ this ; }
Add route into the array of routes

@param   RouteInterface $route
@return  RouterInterface
Add route into the array of routes