1 | <?php |
||
7 | class OrderBy implements Snippet |
||
8 | { |
||
9 | const |
||
10 | ASC = 'ASC', |
||
11 | DESC = 'DESC'; |
||
12 | |||
13 | private |
||
14 | $orders; |
||
15 | |||
16 | 45 | public function __construct() |
|
20 | |||
21 | 13 | public function addOrderBy($column, $direction = self::ASC) |
|
27 | |||
28 | 38 | public function toString() |
|
46 | |||
47 | 13 | private function validateDirection($direction) |
|
55 | } |
||
56 |