public function getAggregation(string $name): ? Aggregation
    {
        if (is_null($this->aggregations)) {
            return null;
        }

        return $this
            ->aggregations
            ->getAggregation($name);
    }
public function getAggregation(string $name): ? Aggregation
    {
        if (is_null($this->aggregations)) {
            return null;
        }

        return $this
            ->aggregations
            ->getAggregation($name);
    }
public function getAggregation ( string $ name ) : ? Aggregation { if ( is_null ( $ this -> aggregations ) ) { return null ; } return $ this -> aggregations -> getAggregation ( $ name ) ; }
Get aggregation.

@param string $name

@return Aggregation|null
Get aggregation .