class_exists

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if the class has been defined
<?php class_exists(string $class, bool $autoload = true): bool
<?php     {

        $class = get_class($object);



        if (! class_exists(Proxy::class)) {

            return $class;

        }
<?php     private function getArrayCache(): Cache

    {

        if (class_exists(DoctrineProvider::class)) {

            return DoctrineProvider::wrap(new ArrayAdapter());

        }
<?php             return DoctrineProvider::wrap(new ArrayAdapter());

        }



        if (class_exists(ArrayCache::class)) {

            return new ArrayCache();

        }