WordPress\AiClient\Providers\Http\DTO

ApiKeyRequestAuthentication::fromArraypublic staticWP 0.1.0

{@inheritDoc}

Method of the class: ApiKeyRequestAuthentication{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = ApiKeyRequestAuthentication::fromArray( $array ): self;
$array(array) (required)
.

Changelog

Since 0.1.0 Introduced.

ApiKeyRequestAuthentication::fromArray() code WP 7.0

public static function fromArray(array $array): self
{
    static::validateFromArrayData($array, [self::KEY_API_KEY]);
    return new self($array[self::KEY_API_KEY]);
}