src/Aggregation/AbstractAggregation.php
protected function collectNestedAggregations()
    {
        $result = [];
        /** @var AbstractAggregation $aggregation */
        foreach ($this->getAggregations() as $aggregation) {
            $result[$aggregation->getName()] = $aggregation->toArray();
        }

        return $result;
    }
protected function collectNestedAggregations()
    {
        $result = [];
        /** @var AbstractAggregation $aggregation */
        foreach ($this->getAggregations() as $aggregation) {
            $result[$aggregation->getName()] = $aggregation->toArray();
        }

        return $result;
    }
protected function collectNestedAggregations ( ) { $ result = [ ] ; /** @var AbstractAggregation $aggregation */ foreach ( $ this -> getAggregations ( ) as $ aggregation ) { $ result [ $ aggregation -> getName ( ) ] = $ aggregation -> toArray ( ) ; } return $ result ; }
Process all nested aggregations.

@return array
Process all nested aggregations .