| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare (strict_types=1); 4 namespace WordPress\AiClient\Common\Contracts; 5 6 /** 7 * Interface for objects that can provide their JSON schema representation. 8 * 9 * This interface is implemented by DTOs to provide a consistent way to retrieve 10 * their JSON schema for validation and serialization purposes. 11 * 12 * @since 0.1.0 13 */ 14 interface WithJsonSchemaInterface 15 { 16 /** 17 * Gets the JSON schema representation of the object. 18 * 19 * @since 0.1.0 20 * 21 * @return array<string, mixed> The JSON schema as an associative array. 22 */ 23 public static function getJsonSchema(): array; 24 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sat Jun 13 09:38:55 2026 | Cross-referenced by PHPXref |