ManaPHP\Mvc\Router\Group::_addRoute PHP Method

_addRoute() protected method

Adds a route applying the common attributes
protected _addRoute ( string $pattern, string | array $paths = null, string $httpMethod = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
$httpMethod string
return ManaPHP\Mvc\Router\RouteInterface
    protected function _addRoute($pattern, $paths = null, $httpMethod = null)
    {
        $route = new Route($pattern, $paths, $httpMethod);
        $this->_routes[] = $route;
        return $route;
    }