AbstractDataTransferObject::isArrayShape( $array )

In this article

{@inheritDoc}

Source

public static function isArrayShape(array $array): bool
{
    try {
        /** @var TArrayShape $array */
        static::fromArray($array);
        return \true;
    } catch (InvalidArgumentException $e) {
        return \false;
    }
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.