ameliabooking
/
vendor
/
wordpress
/
php-mcp-schema
/
src
/
Common
/
Protocol
/
DTO
/
EmptyResult.php
ameliabooking
/
vendor
/
wordpress
/
php-mcp-schema
/
src
/
Common
/
Protocol
/
DTO
Last commit date
Annotations.php
1 month ago
BaseMetadata.php
1 month ago
BlobResourceContents.php
1 month ago
CancelledNotification.php
1 month ago
CancelledNotificationParams.php
1 month ago
EmbeddedResource.php
1 month ago
EmptyResult.php
1 month ago
GetTaskPayloadRequest.php
1 month ago
GetTaskPayloadRequestParams.php
1 month ago
GetTaskPayloadResult.php
1 month ago
Icons.php
1 month ago
InitializeRequest.php
1 month ago
InitializeRequestParams.php
1 month ago
InitializeResult.php
1 month ago
InitializedNotification.php
1 month ago
PaginatedRequest.php
1 month ago
PaginatedRequestParams.php
1 month ago
PaginatedResult.php
1 month ago
PingRequest.php
1 month ago
ProgressNotification.php
1 month ago
ProgressNotificationParams.php
1 month ago
Result.php
1 month ago
TextResourceContents.php
1 month ago
URLElicitationRequiredError.php
1 month ago
EmptyResult.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace WP\McpSchema\Common\Protocol\DTO; |
| 6 | |
| 7 | use WP\McpSchema\Client\Lifecycle\Union\ClientResultInterface; |
| 8 | use WP\McpSchema\Server\Lifecycle\Union\ServerResultInterface; |
| 9 | |
| 10 | /** |
| 11 | * A response that indicates success but carries no data. |
| 12 | * |
| 13 | * This class is a wrapper for {@see Result} that implements union interfaces. |
| 14 | * In TypeScript, this is defined as: `type EmptyResult = Result` |
| 15 | * |
| 16 | * PHP requires actual classes for union interface implementation, so this wrapper |
| 17 | * provides type-safe compatibility with: |
| 18 | * - {@see ClientResultInterface} |
| 19 | * - {@see ServerResultInterface} |
| 20 | * |
| 21 | * @mcp-domain Common |
| 22 | * @mcp-subdomain Protocol |
| 23 | * @mcp-version 2025-11-25 |
| 24 | */ |
| 25 | class EmptyResult extends Result implements ClientResultInterface, ServerResultInterface |
| 26 | { |
| 27 | // Inherits all functionality from Result. |
| 28 | // This wrapper exists solely to implement union interfaces for type safety. |
| 29 | } |
| 30 |