1 | <?php |
||
5 | trait OrderBy |
||
6 | { |
||
7 | /** |
||
8 | * @var OrderStatement |
||
9 | */ |
||
10 | protected $orderBy; |
||
11 | |||
12 | /** |
||
13 | * Sets the order for the query. |
||
14 | * |
||
15 | * @param string|array $fields |
||
16 | * @param string $direction |
||
17 | * |
||
18 | * @return self |
||
19 | */ |
||
20 | public function orderBy($fields, $direction = false) |
||
26 | |||
27 | /** |
||
28 | * Gets the order by statement for the query. |
||
29 | * |
||
30 | * @return OrderByStatement |
||
31 | */ |
||
32 | public function getOrderBy() |
||
36 | } |
||
37 |