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;
    }
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;
    }
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 ; }
Get total value of current column.

@param string $column
@param mixed  $display

@return mixed
Get total value of current column .