src/Query/Select.php
public function group($fields, $rollup = false)
    {
        $this->parts['group']['fields'] = $fields;
        $this->parts['group']['rollup'] = $rollup;

        return $this;
    }
public function group($fields, $rollup = false)
    {
        $this->parts['group']['fields'] = $fields;
        $this->parts['group']['rollup'] = $rollup;

        return $this;
    }
public function group ( $ fields , $ rollup = false ) { $ this -> parts [ 'group' ] [ 'fields' ] = $ fields ; $ this -> parts [ 'group' ] [ 'rollup' ] = $ rollup ; return $ this ; }
Sets the group paramater for the query

@param array $fields
@param boolean $rollup suport for modifier WITH ROLLUP
@return $this
Sets the group paramater for the query