for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Level23\Druid\Responses;
class GroupByQueryResponse extends QueryResponse
{
/**
* Return the data in a "normalized" way, so we can easily iterate over it
*
* @return array<string,string|int|array<mixed>>
*/
public function data(): array
return array_map(function ($row) {
/** @var array<string,string|int|array<mixed>> $row */
return $row['event'];
}, $this->response);
}