protected static function add(string $verb, string $path, $handler) : Route
    {
        /** @var Router $router */
        $router = static::getRouterInstance();

        $route = new static($router, $verb, $path, $handler);

        Router::addRoute($verb, $route);

        return $route;
    }
protected static function add(string $verb, string $path, $handler) : Route
    {
        /** @var Router $router */
        $router = static::getRouterInstance();

        $route = new static($router, $verb, $path, $handler);

        Router::addRoute($verb, $route);

        return $route;
    }
protected static function add ( string $ verb , string $ path , $ handler ) : Route { /** @var Router $router */ $ router = static :: getRouterInstance ( ) ; $ route = new static ( $ router , $ verb , $ path , $ handler ) ; Router :: addRoute ( $ verb , $ route ) ; return $ route ; }
Creates a new route
@param string $verb
@param string $path
@param $handler
@return Route
@since 1.0.0
Creates a new route