public function getAggregation($name)
    {
        if (!isset($this->rawData[$name])) {
            return null;
        }

        return new self($this->rawData[$name]);
    }
public function getAggregation($name)
    {
        if (!isset($this->rawData[$name])) {
            return null;
        }

        return new self($this->rawData[$name]);
    }
public function getAggregation ( $ name ) { if ( ! isset ( $ this -> rawData [ $ name ] ) ) { return null ; } return new self ( $ this -> rawData [ $ name ] ) ; }
Returns sub-aggregation.

@param string $name

@return AggregationValue|null
Returns sub - aggregation .