protected function setAggregate($function, $columns)
    {
        $this->aggregate = compact('function', 'columns');

        if (empty($this->groups)) {
            $this->orders = null;

            $this->bindings['order'] = [];
        }

        return $this;
    }
protected function setAggregate($function, $columns)
    {
        $this->aggregate = compact('function', 'columns');

        if (empty($this->groups)) {
            $this->orders = null;

            $this->bindings['order'] = [];
        }

        return $this;
    }
protected function setAggregate ( $ function , $ columns ) { $ this -> aggregate = compact ( 'function' , 'columns' ) ; if ( empty ( $ this -> groups ) ) { $ this -> orders = null ; $ this -> bindings [ 'order' ] = [ ] ; } return $ this ; }
Set the aggregate property without running the query.

@param  string  $function
@param  array  $columns
@return $this
Set the aggregate property without running the query .