| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class CountAggregator implements AggregatorInterface |
||
| 7 | { |
||
| 8 | protected string $outputName; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * CountAggregator constructor. |
||
| 12 | * |
||
| 13 | * @param string $outputName |
||
| 14 | */ |
||
| 15 | 1 | public function __construct(string $outputName) |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Return the aggregator as it can be used in a druid query. |
||
| 22 | * |
||
| 23 | * @return array<string,string> |
||
| 24 | */ |
||
| 25 | 1 | public function toArray(): array |
|
| 32 | } |