| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait OrderTrait |
||
| 8 | { |
||
| 9 | /** @var Select */ |
||
| 10 | private $query; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Ordena por um campo |
||
| 14 | * @param string $orderBy |
||
| 15 | * @return static |
||
| 16 | */ |
||
| 17 | public function orderBy($orderBy) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Ordena pelo id |
||
| 26 | * @return static |
||
| 27 | */ |
||
| 28 | public function order($mode = 'DESC') |
||
| 35 |