public function getAggregation($name)
    {
        $aggregations = parent::getAggregations();
        if (!array_key_exists($name, $aggregations)) {
            return null;
        }

        return new AggregationValue($aggregations[$name]);
    }
public function getAggregation($name)
    {
        $aggregations = parent::getAggregations();
        if (!array_key_exists($name, $aggregations)) {
            return null;
        }

        return new AggregationValue($aggregations[$name]);
    }
public function getAggregation ( $ name ) { $ aggregations = parent :: getAggregations ( ) ; if ( ! array_key_exists ( $ name , $ aggregations ) ) { return null ; } return new AggregationValue ( $ aggregations [ $ name ] ) ; }
Get a specific aggregation by name. It fetches from the top level only.

@param string $name

@return AggregationValue|null
Get a specific aggregation by name . It fetches from the top level only .