protected function _addRoute($pattern, $paths = null, $method = null)
    {
        $route = new Route($pattern, $paths, $method);
        if ($method !== 'REST' && strpos($pattern, '{') === false) {
            $this->_simple_routes[$method][$pattern] = $route;
        } else {
            $this->_regex_routes[] = $route;
        }

        return $route;
    }
protected function _addRoute($pattern, $paths = null, $method = null)
    {
        $route = new Route($pattern, $paths, $method);
        if ($method !== 'REST' && strpos($pattern, '{') === false) {
            $this->_simple_routes[$method][$pattern] = $route;
        } else {
            $this->_regex_routes[] = $route;
        }

        return $route;
    }
protected function _addRoute ( $ pattern , $ paths = null , $ method = null ) { $ route = new Route ( $ pattern , $ paths , $ method ) ; if ( $ method !== 'REST' && strpos ( $ pattern , '{' ) === false ) { $ this -> _simple_routes [ $ method ] [ $ pattern ] = $ route ; } else { $ this -> _regex_routes [ ] = $ route ; } return $ route ; }
Adds a route applying the common attributes

@param string       $pattern
@param string|array $paths
@param string       $method

@return \ManaPHP\Router\RouteInterface
Adds a route applying the common attributes