protected function route($method, $uri, $handler, $middlewares)
    {
        if (is_string($handler) === true)
        {
            $namespace = $this->namespace;

            $namespace !== '' && $namespace .= '\\';

            $handler = $namespace . $handler;
        }

        return new Route($method, $uri, $handler, $middlewares);
    }
protected function route($method, $uri, $handler, $middlewares)
    {
        if (is_string($handler) === true)
        {
            $namespace = $this->namespace;

            $namespace !== '' && $namespace .= '\\';

            $handler = $namespace . $handler;
        }

        return new Route($method, $uri, $handler, $middlewares);
    }
protected function route ( $ method , $ uri , $ handler , $ middlewares ) { if ( is_string ( $ handler ) === true ) { $ namespace = $ this -> namespace ; $ namespace !== '' && $ namespace .= '\\' ; $ handler = $ namespace . $ handler ; } return new Route ( $ method , $ uri , $ handler , $ middlewares ) ; }
Prepares a new route instance.

@param  string                $method
@param  string                $uri
@param  callable|string       $handler
@param  array|callable|string $middlewares
@return \Zapheus\Routing\Route
Prepares a new route instance .