Total Complexity | 7 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | abstract class AbstractAggregation extends AbstractQuery implements AggregationInterface |
||
11 | { |
||
12 | /** |
||
13 | * @inheritdoc |
||
14 | */ |
||
15 | public function count(): QueryInterface |
||
16 | { |
||
17 | return new Count($this->rethink, $this); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public function group(string $key): TransformationCompoundInterface |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function ungroup(): TransformationCompoundInterface |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | public function sum(string $key): QueryInterface |
||
40 | { |
||
41 | return new Sum($this->rethink, $this, $key); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function avg(string $key): QueryInterface |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function min(string $key): AggregationInterface |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function max(string $key): TransformationCompoundInterface |
||
68 |