ameliabooking
/
vendor
/
wordpress
/
php-mcp-schema
/
src
/
Common
/
JsonRpc
/
Union
/
JSONRPCMessageInterface.php
ameliabooking
/
vendor
/
wordpress
/
php-mcp-schema
/
src
/
Common
/
JsonRpc
/
Union
Last commit date
JSONRPCMessageInterface.php
1 month ago
JSONRPCResponseInterface.php
1 month ago
JSONRPCMessageInterface.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace WP\McpSchema\Common\JsonRpc\Union; |
| 6 | |
| 7 | /** |
| 8 | * Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent. |
| 9 | * |
| 10 | * Union type members: |
| 11 | * - JSONRPCRequest |
| 12 | * - JSONRPCNotification |
| 13 | * - JSONRPCResponse |
| 14 | * |
| 15 | * @mcp-domain Common |
| 16 | * @mcp-subdomain JsonRpc |
| 17 | * @mcp-version 2025-11-25 |
| 18 | */ |
| 19 | interface JSONRPCMessageInterface |
| 20 | { |
| 21 | /** |
| 22 | * Converts the instance to an array. |
| 23 | * |
| 24 | * @return array<string, mixed> |
| 25 | */ |
| 26 | public function toArray(): array; |
| 27 | } |
| 28 |