interface_exists

Supported Versions: PHP 5 >= 5.0.2, PHP 7, PHP 8
Checks if the interface has been defined
<?php interface_exists(string $interface, bool $autoload = true): bool
<?php         $paramClassName = static::getParameterClassName($parameter);



        return $paramClassName

            && (class_exists($paramClassName) || interface_exists($paramClassName))

            && (new ReflectionClass($paramClassName))->isSubclassOf($className);

    }
<?php use Illuminate\Testing\Concerns\RunsInParallel;



if (interface_exists(\ParaTest\RunnerInterface::class)) {

    class ParallelRunner implements \ParaTest\RunnerInterface

    {

        use RunsInParallel;