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         $exceptionClass = ViewException::class;



        if (in_array(ProvidesSolution::class, class_implements($e))) {

            $exceptionClass = ViewExceptionWithSolution::class;

        }