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