Request::withOptions( WordPressAiClientProvidersHttpDTORequestOptions|null $options ): self

In this article

Returns a new instance with the specified request options.

Parameters

$optionsWordPressAiClientProvidersHttpDTORequestOptions|nullrequired
The request options to apply.

Return

self A new instance with the options.

Source

public function withOptions(?\WordPress\AiClient\Providers\Http\DTO\RequestOptions $options): self
{
    $new = clone $this;
    $new->options = $options;
    return $new;
}

Changelog

VersionDescription
0.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.