1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * This file is part of the Nexus MCP SDK package.
7: *
8: * (c) 2026 John Paul E. Balandan, CPA <paulbalandan@gmail.com>
9: *
10: * For the full copyright and license information, please view
11: * the LICENSE file that was distributed with this source code.
12: */
13:
14: namespace Nexus\Mcp\Core\Schema\Request;
15:
16: use Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest;
17: use Nexus\Mcp\Core\Schema\RequestId;
18: use Nexus\Mcp\Core\Schema\RequestParams\PaginatedRequestParams;
19:
20: /**
21: * A request that paginates its result via an opaque cursor.
22: *
23: * @property-read PaginatedRequestParams $params
24: *
25: * @template-covariant TMethod of non-empty-string
26: * @template-covariant TEnvelope of array<string, mixed>
27: *
28: * @extends JsonRpcRequest<TMethod, TEnvelope>
29: *
30: * @see https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/draft/schema.ts
31: */
32: abstract readonly class PaginatedRequest extends JsonRpcRequest
33: {
34: public function __construct(RequestId $id, PaginatedRequestParams $params)
35: {
36: parent::__construct(id: $id, params: $params);
37: }
38: }
39: