| 1 | <?php |
||
| 17 | class OrderExpression implements ExpressionInterface |
||
| 18 | { |
||
| 19 | const ORDER_ASC = 'ASC'; |
||
| 20 | const ORDER_DESC = 'DESC'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ExpressionInterface $wrappedExpression |
||
| 24 | */ |
||
| 25 | private $wrappedExpression; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string $order |
||
| 29 | */ |
||
| 30 | private $order; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param ExpressionInterface $expression |
||
| 34 | * @param string $order |
||
| 35 | */ |
||
| 36 | 1 | public function __construct(ExpressionInterface $expression, $order) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | 1 | public function compile() |
|
| 49 | } |