Returns a new instance with the specified request options.
Parameters
$optionsWordPressAiClientProvidersHttpDTORequestOptions|nullrequired- The request options to apply.
Source
public function withOptions(?\WordPress\AiClient\Providers\Http\DTO\RequestOptions $options): self
{
$new = clone $this;
$new->options = $options;
return $new;
}
Changelog
| Version | Description |
|---|---|
| 0.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.