public function group(RouteGroupOptions $groupOptions, Closure $callback): void
    {
        $this->groupOptionsStack[] = $groupOptions;
        $callback($this);
        \array_pop($this->groupOptionsStack);
    }
public function group(RouteGroupOptions $groupOptions, Closure $callback): void
    {
        $this->groupOptionsStack[] = $groupOptions;
        $callback($this);
        \array_pop($this->groupOptionsStack);
    }
public function group ( RouteGroupOptions $ groupOptions , Closure $ callback ) : void { $ this -> groupOptionsStack [ ] = $ groupOptions ; $ callback ( $ this ) ; \ array_pop ( $ this -> groupOptionsStack ) ; }
Creates a group of routes that share similar options

@param RouteGroupOptions $groupOptions The list of options shared by all routes in the group
@param Closure $callback The callback that accepts an instance of this class
Creates a group of routes that share similar options