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\RequestParams;
15:
16: use Nexus\Mcp\Core\Schema\RequestMetaObject;
17: use Nexus\Mcp\Core\Schema\RequestParams;
18:
19: /**
20: * Common params for resource-related requests.
21: *
22: * @template-covariant T of array<string, mixed>
23: *
24: * @extends RequestParams<T>
25: *
26: * @see https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/draft/schema.ts
27: */
28: abstract readonly class ResourceRequestParams extends RequestParams
29: {
30: public function __construct(public string $uri, RequestMetaObject $meta)
31: {
32: parent::__construct(meta: $meta);
33: }
34: }
35: