private function findReader(ReflectionClass $class): Reader
    {
        $className = $class->getName();
        foreach ($this->chainDriver->getDrivers() as $namespace => $driver) {
            if (mb_stripos($className, $namespace) === 0) {
                if ($driver instanceof AnnotationDriver) {
                    return $driver->getReader();
                }
            }
        }

        if ($this->chainDriver->getDefaultDriver() instanceof AnnotationDriver) {
            return $this->chainDriver->getDefaultDriver()->getReader();
        }

        throw new Exception('graphql-doctrine requires ' . $className . ' entity to be configured with a `' . AnnotationDriver::class . '`.');
    }
private function findReader(ReflectionClass $class): Reader
    {
        $className = $class->getName();
        foreach ($this->chainDriver->getDrivers() as $namespace => $driver) {
            if (mb_stripos($className, $namespace) === 0) {
                if ($driver instanceof AnnotationDriver) {
                    return $driver->getReader();
                }
            }
        }

        if ($this->chainDriver->getDefaultDriver() instanceof AnnotationDriver) {
            return $this->chainDriver->getDefaultDriver()->getReader();
        }

        throw new Exception('graphql-doctrine requires ' . $className . ' entity to be configured with a `' . AnnotationDriver::class . '`.');
    }
private function findReader ( ReflectionClass $ class ) : Reader { $ className = $ class -> getName ( ) ; foreach ( $ this -> chainDriver -> getDrivers ( ) as $ namespace => $ driver ) { if ( mb_stripos ( $ className , $ namespace ) === 0 ) { if ( $ driver instanceof AnnotationDriver ) { return $ driver -> getReader ( ) ; } } } if ( $ this -> chainDriver -> getDefaultDriver ( ) instanceof AnnotationDriver ) { return $ this -> chainDriver -> getDefaultDriver ( ) -> getReader ( ) ; } throw new Exception ( 'graphql-doctrine requires ' . $ className . ' entity to be configured with a `' . AnnotationDriver :: class . '`.' ) ; }
Find the reader for the class

@param ReflectionClass $class

@return Reader
Find the reader for the class