| Total Complexity | 7 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | trait Group |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $bGroups = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | protected function gGroups() : string |
||
| 24 | { |
||
| 25 | return $this->bGroups ? sprintf(' GROUP BY %s', implode(',', $this->bGroups)) : ''; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param mixed ...$groups |
||
| 30 | * @return Builder |
||
| 31 | */ |
||
| 32 | public function group(...$groups) : Builder |
||
| 53 | } |
||
| 54 | } |
||
| 55 |