| 1 | <?php |
||
| 6 | class LimitExpression implements ExpressionInterface |
||
| 7 | { |
||
| 8 | /** @var int */ |
||
| 9 | protected $take; |
||
| 10 | |||
| 11 | /** @var int */ |
||
| 12 | protected $offset; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param int $take |
||
| 16 | * @return static |
||
| 17 | */ |
||
| 18 | 7 | public function take($take = null) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param int $offset |
||
| 26 | * @return static |
||
| 27 | */ |
||
| 28 | 5 | public function offset($offset = null) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param int $offset |
||
| 36 | * @param int $take |
||
| 37 | * @return static |
||
| 38 | */ |
||
| 39 | public function limit($offset, $take) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | 9 | public function toSql() |
|
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | 9 | public function getBindings() |
|
| 78 | } |
||
| 79 |