/**
* @param array<array<string, mixed>> $rows
*/
private function hydrateDateHistogramAggregation( DateHistogramAggregation
$aggregation,
EntityDefinition
$definition,
array
$rows,
Context
$context ): DateHistogramResult
{ if (empty($rows)) { return new DateHistogramResult($aggregation->
getName(),
[]);
} $buckets =
[];
$grouped =
$this->
groupBuckets($aggregation,
$rows);
foreach ($grouped as $value =>
$group) { $count =
$group['count'
];
$nested = null;
if ($aggregation->
getAggregation()) {