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;
15:
16: use Nexus\Mcp\Core\Schema\RequestParams\EmptyRequestParams;
17:
18: /**
19: * @template-covariant TMethod of non-empty-string
20: *
21: * @see https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/2025-11-25/schema.ts
22: */
23: abstract readonly class Request
24: {
25: public function __construct(public RequestParams $params = new EmptyRequestParams())
26: {
27: }
28:
29: /**
30: * @return TMethod
31: */
32: abstract public static function getMethod(): string;
33: }
34: