WordPress\AiClient\Tools\DTO
FunctionCall::fromArray
{@inheritDoc}
Method of the class: FunctionCall{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = FunctionCall::fromArray( $array ): self;
- $array(array) (required)
- .
Changelog
| Since 0.1.0 | Introduced. |
FunctionCall::fromArray() FunctionCall::fromArray code WP 7.0
public static function fromArray(array $array): self
{
return new self($array[self::KEY_ID] ?? null, $array[self::KEY_NAME] ?? null, $array[self::KEY_ARGS] ?? null);
}