class_implements

Supported Versions: PHP 5, PHP 7, PHP 8
Return the interfaces which are implemented by the given class or interface
<?php class_implements(object|string $object_or_class, bool $autoload = true): array|false
<?php     private static function createDriver(array $params): Driver

    {

        if (isset($params['driverClass'])) {

            $interfaces = class_implements($params['driverClass']);



            if ($interfaces === false || ! in_array(Driver::class, $interfaces, true)) {

                throw Exception::invalidDriverClass($params['driverClass']);