WordPress\AiClient\Providers\Http\DTO

ApiKeyRequestAuthentication::toArraypublicWP 0.1.0

{@inheritDoc}

Method of the class: ApiKeyRequestAuthentication{}

No Hooks.

Returns

ApiKeyRequestAuthenticationArrayShape.

Usage

$ApiKeyRequestAuthentication = new ApiKeyRequestAuthentication();
$ApiKeyRequestAuthentication->toArray(): array;

Changelog

Since 0.1.0 Introduced.

ApiKeyRequestAuthentication::toArray() code WP 7.0

public function toArray(): array
{
    return [self::KEY_API_KEY => $this->apiKey];
}