ameliabooking
/
vendor
/
wordpress
/
php-mcp-schema
/
src
/
Common
/
Protocol
/
Union
/
ContentBlockInterface.php
ameliabooking
/
vendor
/
wordpress
/
php-mcp-schema
/
src
/
Common
/
Protocol
/
Union
Last commit date
ClientNotificationInterface.php
1 month ago
ClientRequestInterface.php
1 month ago
ContentBlockInterface.php
1 month ago
SamplingMessageContentBlockInterface.php
1 month ago
ServerRequestInterface.php
1 month ago
ContentBlockInterface.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace WP\McpSchema\Common\Protocol\Union; |
| 6 | |
| 7 | /** |
| 8 | * Union type members: |
| 9 | * - TextContent |
| 10 | * - ImageContent |
| 11 | * - AudioContent |
| 12 | * - ResourceLink |
| 13 | * - EmbeddedResource |
| 14 | * |
| 15 | * @mcp-domain Common |
| 16 | * @mcp-subdomain Protocol |
| 17 | * @mcp-version 2025-11-25 |
| 18 | */ |
| 19 | interface ContentBlockInterface |
| 20 | { |
| 21 | /** |
| 22 | * Converts the instance to an array. |
| 23 | * |
| 24 | * @return array<string, mixed> |
| 25 | */ |
| 26 | public function toArray(): array; |
| 27 | } |
| 28 |