[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/Models/DTO/ -> RequiredOption.php (summary)

(no description)

File Size: 100 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

RequiredOption:: (6 methods):
  __construct()
  getName()
  getValue()
  getJsonSchema()
  toArray()
  fromArray()


Class: RequiredOption  - X-Ref

Represents an option that the implementing code requires the model to support.

This class defines an option that the model must support with a specific value
for it to be considered suitable for the implementing code's requirements.

__construct(OptionEnum $name, $value)   X-Ref
Constructor.

param: OptionEnum $name The option name.
param: mixed $value The value that the model must support for this option.

getName()   X-Ref
Gets the option name.

return: OptionEnum The option name.

getValue()   X-Ref
Gets the value that the model must support for this option.

return: mixed The value that the model must support.

getJsonSchema()   X-Ref
{@inheritDoc}


toArray()   X-Ref
{@inheritDoc}

return: RequiredOptionArrayShape

fromArray(array $array)   X-Ref
{@inheritDoc}




Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref