public function aggregate(\Closure $closure)
    {
        $builder = new AggregationBuilder($this->query);

        $closure($builder);

        return $this;
    }
public function aggregate(\Closure $closure)
    {
        $builder = new AggregationBuilder($this->query);

        $closure($builder);

        return $this;
    }
public function aggregate ( \ Closure $ closure ) { $ builder = new AggregationBuilder ( $ this -> query ) ; $ closure ( $ builder ) ; return $ this ; }
Add aggregation.

@param \Closure $closure

@return $this
Add aggregation .