Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
6 | abstract class Aggs |
||
7 | { |
||
8 | /** |
||
9 | * Aggregations |
||
10 | * |
||
11 | * @var array |
||
12 | */ |
||
13 | private $aggregations = []; |
||
14 | |||
15 | /** |
||
16 | * Add aggregation |
||
17 | * |
||
18 | * @param AbstractAggregation $agg |
||
19 | */ |
||
20 | 41 | protected function addAggregation(AbstractAggregation $agg) |
|
23 | 41 | } |
|
24 | |||
25 | /** |
||
26 | * Get aggregations |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | 41 | public function getAggregations() : array |
|
35 |