WordPress\AiClient\Providers\Http\DTO
ApiKeyRequestAuthentication::toArray
{@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() ApiKeyRequestAuthentication::toArray code WP 7.0
public function toArray(): array
{
return [self::KEY_API_KEY => $this->apiKey];
}