WordPress\AiClient\Providers\Models\DTO
RequiredOption::__construct
Constructor.
Method of the class: RequiredOption{}
No Hooks.
Returns
null. Nothing (null).
Usage
$RequiredOption = new RequiredOption(); $RequiredOption->__construct( $name, $value );
- $name(OptionEnum) (required)
- The option name.
- $value(mixed) (required)
- The value that the model must support for this option.
Changelog
| Since 0.1.0 | Introduced. |
RequiredOption::__construct() RequiredOption:: construct code WP 7.0
public function __construct(OptionEnum $name, $value)
{
$this->name = $name;
$this->value = $value;
}