ameliabooking
/
vendor
/
wordpress
/
php-mcp-schema
/
src
/
Server
/
Lifecycle
/
Union
/
ServerResultInterface.php
ameliabooking
/
vendor
/
wordpress
/
php-mcp-schema
/
src
/
Server
/
Lifecycle
/
Union
Last commit date
ServerNotificationInterface.php
1 month ago
ServerResultInterface.php
1 month ago
ServerResultInterface.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace WP\McpSchema\Server\Lifecycle\Union; |
| 6 | |
| 7 | /** |
| 8 | * Union type members: |
| 9 | * - EmptyResult |
| 10 | * - InitializeResult |
| 11 | * - CompleteResult |
| 12 | * - GetPromptResult |
| 13 | * - ListPromptsResult |
| 14 | * - ListResourceTemplatesResult |
| 15 | * - ListResourcesResult |
| 16 | * - ReadResourceResult |
| 17 | * - CallToolResult |
| 18 | * - ListToolsResult |
| 19 | * - GetTaskResult |
| 20 | * - GetTaskPayloadResult |
| 21 | * - ListTasksResult |
| 22 | * - CancelTaskResult |
| 23 | * |
| 24 | * @mcp-domain Server |
| 25 | * @mcp-subdomain Lifecycle |
| 26 | * @mcp-version 2025-11-25 |
| 27 | */ |
| 28 | interface ServerResultInterface |
| 29 | { |
| 30 | /** |
| 31 | * Converts the instance to an array. |
| 32 | * |
| 33 | * @return array<string, mixed> |
| 34 | */ |
| 35 | public function toArray(): array; |
| 36 | } |
| 37 |