Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class GroupBy extends Clause |
||
8 | { |
||
9 | private Deck $deck; |
||
10 | |||
11 | /** |
||
12 | * GroupBy constructor. |
||
13 | * |
||
14 | * @param mixed $selected The selected columns or expressions for the GROUP BY clause. |
||
15 | */ |
||
16 | public function __construct($selected) |
||
17 | { |
||
18 | parent::__construct(); |
||
19 | $this->deck = new Deck($selected); |
||
20 | } |
||
21 | |||
22 | public function add(...$selected): self |
||
26 | } |
||
27 | |||
28 | public function __toString(): string |
||
29 | { |
||
30 | return 'GROUP BY ' . $this->deck; |
||
31 | } |
||
32 | |||
33 | public function name(): string |
||
36 | } |
||
37 | } |
||
38 |