$nested =
$this->
hydrateResult($aggregation->
getAggregation(),
$definition,
$group['buckets'
],
$context);
} $date =
new \
DateTime($value);
if ($aggregation->
getFormat()) { $value =
$date->
format($aggregation->
getFormat());
} else { $value = self::
formatDate($aggregation->
getInterval(),
$date);
} $buckets[] =
new Bucket($value,
$count,
$nested);
} return new DateHistogramResult($aggregation->
getName(),
$buckets);
} /**
* @param array<array<string, mixed>> $rows
*/
private function hydrateTermsAggregation( TermsAggregation
$aggregation,
EntityDefinition
$definition,