private static function resolveTypeFromClass(string $className, array $wantedTypes = null)
    {
        foreach (self::$classesMap as $gqlType => $config) {
            if ($config['class'] === $className) {
                if (!$wantedTypes || \in_array($config['type'], $wantedTypes)) {
                    return $gqlType;
                }
            }
        }

        return false;
    }
private static function resolveTypeFromClass(string $className, array $wantedTypes = null)
    {
        foreach (self::$classesMap as $gqlType => $config) {
            if ($config['class'] === $className) {
                if (!$wantedTypes || \in_array($config['type'], $wantedTypes)) {
                    return $gqlType;
                }
            }
        }

        return false;
    }
private static function resolveTypeFromClass ( string $ className , array $ wantedTypes = null ) { foreach ( self :: $ classesMap as $ gqlType => $ config ) { if ( $ config [ 'class' ] === $ className ) { if ( ! $ wantedTypes || \ in_array ( $ config [ 'type' ] , $ wantedTypes ) ) { return $ gqlType ; } } } return false ; }
Resolve a GraphQL Type from a class name.

@param string $className
@param array  $wantedTypes

@return string|false
Resolve a GraphQL Type from a class name .