| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | |
| 14: | namespace Nexus\Mcp\Core\Schema\Result; |
| 15: | |
| 16: | use Nexus\Mcp\Core\Schema\Cursor; |
| 17: | use Nexus\Mcp\Core\Schema\Enum\CacheScope; |
| 18: | use Nexus\Mcp\Core\Schema\MetaObject; |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | |
| 25: | |
| 26: | |
| 27: | |
| 28: | |
| 29: | |
| 30: | abstract readonly class PaginatedResult extends CacheableResult |
| 31: | { |
| 32: | public function __construct( |
| 33: | int $ttlMs, |
| 34: | CacheScope $cacheScope, |
| 35: | public ?Cursor $nextCursor = null, |
| 36: | MetaObject $meta = new MetaObject(), |
| 37: | ) { |
| 38: | parent::__construct(ttlMs: $ttlMs, cacheScope: $cacheScope, meta: $meta); |
| 39: | } |
| 40: | } |
| 41: | |