WordPress\AiClient\Common
AbstractDataTransferObject::isArrayShape
{@inheritDoc}
Method of the class: AbstractDataTransferObject{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = AbstractDataTransferObject::isArrayShape( $array ): bool;
- $array(array) (required)
- .
Changelog
| Since 0.1.0 | Introduced. |
AbstractDataTransferObject::isArrayShape() AbstractDataTransferObject::isArrayShape code WP 7.0.2
public static function isArrayShape(array $array): bool
{
try {
/** @var TArrayShape $array */
static::fromArray($array);
return \true;
} catch (InvalidArgumentException $e) {
return \false;
}
}