| 1 | <?php |
||
| 15 | class OrderByExpression implements ExpressionInterface |
||
| 16 | { |
||
| 17 | /** @var array */ |
||
| 18 | protected $orders = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string|array $name |
||
| 22 | * @param bool $asc |
||
| 23 | * @return static |
||
| 24 | */ |
||
| 25 | 9 | public function orderBy($name, $asc = true) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param string|array $name |
||
| 33 | * @param bool $asc |
||
| 34 | * @return static |
||
| 35 | */ |
||
| 36 | 10 | public function andOrderBy($name, $asc = true) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | 11 | public function toSql() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | 11 | public function getBindings() |
|
| 70 | } |
||
| 71 |