original_string: protected function total($column, $display)
      {
          if (!is_callable($display) && !is_null($display)) {
              return $display;
          }
  
          $sum = $this->query->sum($column);
  
          if (is_callable($display)) {
              return call_user_func($display, $sum);
          }
  
          return $sum;
      }
code: protected function total($column, $display)
      {
          if (!is_callable($display) && !is_null($display)) {
              return $display;
          }
  
          $sum = $this->query->sum($column);
  
          if (is_callable($display)) {
              return call_user_func($display, $sum);
          }
  
          return $sum;
      }
code_tokens: protected function total ( $ column , $ display ) { if ( ! is_callable ( $ display ) && ! is_null ( $ display ) ) { return $ display ; } $ sum = $ this -> query -> sum ( $ column ) ; if ( is_callable ( $ display ) ) { return call_user_func ( $ display , $ sum ) ; } return $ sum ; }
docstring: Get total value of current column.
  
  @param string $column
  @param mixed  $display
  
  @return mixed
docstring_tokens: Get total value of current column .