| 1 | <?php |
||
| 9 | class LimitNode extends AbstractNode |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | protected $limit; |
||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | protected $offset; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param int $limit |
||
| 22 | * @param int $offset |
||
| 23 | */ |
||
| 24 | public function __construct($limit, $offset = 0) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | */ |
||
| 33 | public function getNodeName() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return int|null |
||
| 40 | */ |
||
| 41 | public function getLimit() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param int $limit |
||
| 48 | * @return void |
||
| 49 | */ |
||
| 50 | public function setLimit($limit) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return int |
||
| 57 | */ |
||
| 58 | public function getOffset() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param int $offset |
||
| 65 | * @return void |
||
| 66 | */ |
||
| 67 | public function setOffset($offset) |
||
| 71 | } |
||
| 72 |