WordPress\AiClient\Common\Contracts

WithArrayTransformationInterface::fromArraypublic staticWP 0.1.0

Creates an instance from array data.

Method of the class: WithArrayTransformationInterface{}

No Hooks.

Returns

self. The created instance.

Usage

$result = WithArrayTransformationInterface::fromArray( $array ): self;
$array(TArrayShape) (required)
The array data.

Changelog

Since 0.1.0 Introduced.

WithArrayTransformationInterface::fromArray() code WP 7.0

public static function fromArray(array $array): self;