public function getAggregation($name)
    {
        if (isset($this->aggregations[$name])) {
            return $this->aggregations[$name];
        }
        return null;
    }
public function getAggregation($name)
    {
        if (isset($this->aggregations[$name])) {
            return $this->aggregations[$name];
        }
        return null;
    }
public function getAggregation ( $ name ) { if ( isset ( $ this -> aggregations [ $ name ] ) ) { return $ this -> aggregations [ $ name ] ; } return null ; }
Returns specific aggregation by name.

@param string $name

@return array
Returns specific aggregation by name .