private function getBuilder($bucketType)
    {
        if (!isset($this->builders[$bucketType])) {
            throw new \InvalidArgumentException("No builder found for aggregation type {$bucketType}.");
        }

        return $this->builders[$bucketType];
    }
private function getBuilder($bucketType)
    {
        if (!isset($this->builders[$bucketType])) {
            throw new \InvalidArgumentException("No builder found for aggregation type {$bucketType}.");
        }

        return $this->builders[$bucketType];
    }
private function getBuilder ( $ bucketType ) { if ( ! isset ( $ this -> builders [ $ bucketType ] ) ) { throw new \ InvalidArgumentException ( "No builder found for aggregation type {$bucketType}." ) ; } return $ this -> builders [ $ bucketType ] ; }
Retrieve the builder used to convert a bucket into ES aggregation.

@param string $bucketType Bucket type to be built.

@return BuilderInterface
Retrieve the builder used to convert a bucket into ES aggregation .