| Total Complexity | 7 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait AggregationTrait |
||
| 9 | { |
||
| 10 | public function count(): QueryInterface |
||
| 11 | { |
||
| 12 | return new Count($this->rethink, /** @scrutinizer ignore-type */ $this); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function group(string $key) |
||
| 18 | } |
||
| 19 | |||
| 20 | public function ungroup() |
||
| 23 | } |
||
| 24 | |||
| 25 | public function sum(string $key): QueryInterface |
||
| 26 | { |
||
| 27 | return new Sum($this->rethink, /** @scrutinizer ignore-type */ $this, $key); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function avg(string $key): QueryInterface |
||
| 31 | { |
||
| 32 | return new Avg($this->rethink, /** @scrutinizer ignore-type */ $this, $key); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function min(string $key) |
||
| 36 | { |
||
| 37 | return new Min($this->rethink, /** @scrutinizer ignore-type */ $this, $key); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function max(string $key) |
||
| 43 | } |
||
| 44 | } |
||
| 45 |