function route($path = '/', array $actions = [], $method = Router::ANY_METHOD, $name = '')
    {
        $this->path($path);
        $this->actions[$method] = $actions;
        $this->name = $name;

        return $this;
    }
function route($path = '/', array $actions = [], $method = Router::ANY_METHOD, $name = '')
    {
        $this->path($path);
        $this->actions[$method] = $actions;
        $this->name = $name;

        return $this;
    }
function route ( $ path = '/' , array $ actions = [ ] , $ method = Router :: ANY_METHOD , $ name = '' ) { $ this -> path ( $ path ) ; $ this -> actions [ $ method ] = $ actions ; $ this -> name = $ name ; return $ this ; }
Set route params

@param string $path Path for parse
@param array $actions Array actions for route
@param int|string $method Request method
@param string $name Alias for route
Set route params