| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 165 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ModelMetadata:: (9 methods):
__construct()
getId()
getName()
getSupportedCapabilities()
getSupportedOptions()
getJsonSchema()
toArray()
fromArray()
__clone()
Class: ModelMetadata - X-Ref
Represents metadata about an AI model.| __construct(string $id, string $name, array $supportedCapabilities, array $supportedOptions) X-Ref |
| Constructor. param: string $id The model's unique identifier. param: string $name The model's display name. param: list<CapabilityEnum> $supportedCapabilities The model's supported capabilities. param: list<SupportedOption> $supportedOptions The model's supported configuration options. |
| getId() X-Ref |
| Gets the model's unique identifier. return: string The model ID. |
| getName() X-Ref |
| Gets the model's display name. return: string The model name. |
| getSupportedCapabilities() X-Ref |
| Gets the model's supported capabilities. return: list<CapabilityEnum> The supported capabilities. |
| getSupportedOptions() X-Ref |
| Gets the model's supported configuration options. return: list<SupportedOption> The supported options. |
| getJsonSchema() X-Ref |
| {@inheritDoc} |
| toArray() X-Ref |
| {@inheritDoc} return: ModelMetadataArrayShape |
| fromArray(array $array) X-Ref |
| {@inheritDoc} |
| __clone() X-Ref |
| Performs a deep clone of the model metadata. This method ensures that supported option objects are cloned to prevent modifications to the cloned metadata from affecting the original. |
| Generated : Sat Jun 13 09:38:55 2026 | Cross-referenced by PHPXref |