2022-04-21 18:37:28 +00:00
|
|
|
<?php
|
|
|
|
/** @license MIT
|
|
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2023-03-23 03:33:05 +00:00
|
|
|
|
2022-04-21 18:37:28 +00:00
|
|
|
namespace JKingWeb\Arsse\Context;
|
|
|
|
|
2022-04-29 20:35:46 +00:00
|
|
|
abstract class RootContext extends AbstractContext {
|
2022-04-21 18:37:28 +00:00
|
|
|
public $limit = 0;
|
|
|
|
public $offset = 0;
|
|
|
|
|
2024-12-15 21:31:57 +00:00
|
|
|
public function limit(?int $spec = null) {
|
2022-04-21 18:37:28 +00:00
|
|
|
return $this->act(__FUNCTION__, func_num_args(), $spec);
|
|
|
|
}
|
|
|
|
|
2024-12-15 21:31:57 +00:00
|
|
|
public function offset(?int $spec = null) {
|
2022-04-21 18:37:28 +00:00
|
|
|
return $this->act(__FUNCTION__, func_num_args(), $spec);
|
|
|
|
}
|
|
|
|
}
|