| Total Complexity | 7 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait AggregationTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @inheritdoc |
||
| 12 | */ |
||
| 13 | public function count(): QueryInterface |
||
| 14 | { |
||
| 15 | return new Count($this->rethink, $this); |
||
|
|
|||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @inheritdoc |
||
| 20 | */ |
||
| 21 | public function group(string $key) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
| 29 | public function ungroup() |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | public function sum(string $key): QueryInterface |
||
| 38 | { |
||
| 39 | return new Sum($this->rethink, $this, $key); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function avg(string $key): QueryInterface |
||
| 46 | { |
||
| 47 | return new Avg($this->rethink, $this, $key); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritdoc |
||
| 52 | */ |
||
| 53 | public function min(string $key) |
||
| 54 | { |
||
| 55 | return new Min($this->rethink, $this, $key); |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritdoc |
||
| 60 | */ |
||
| 61 | public function max(string $key) |
||
| 64 | } |
||
| 65 | } |
||
| 66 |