original_string: protected function setAggregate($function, $columns)
      {
          $this->aggregate = compact('function', 'columns');
  
          if (empty($this->groups)) {
              $this->orders = null;
  
              $this->bindings['order'] = [];
          }
  
          return $this;
      }
code: protected function setAggregate($function, $columns)
      {
          $this->aggregate = compact('function', 'columns');
  
          if (empty($this->groups)) {
              $this->orders = null;
  
              $this->bindings['order'] = [];
          }
  
          return $this;
      }
code_tokens: protected function setAggregate ( $ function , $ columns ) { $ this -> aggregate = compact ( 'function' , 'columns' ) ; if ( empty ( $ this -> groups ) ) { $ this -> orders = null ; $ this -> bindings [ 'order' ] = [ ] ; } return $ this ; }
docstring: Set the aggregate property without running the query.
  
  @param  string  $function
  @param  array  $columns
  @return $this
docstring_tokens: Set the aggregate property without running the query .