private static function resolveTypeFromDoctrineType(string $doctrineType)
    {
        if (isset(self::$doctrineMapping[$doctrineType])) {
            return self::$doctrineMapping[$doctrineType];
        }

        switch ($doctrineType) {
            case 'integer':
            case 'smallint':
            case 'bigint':
                return 'Int';
                break;
            case 'string':
            case 'text':
                return 'String';
                break;
            case 'bool':
            case 'boolean':
                return 'Boolean';
                break;
            case 'float':
            case 'decimal':
                return 'Float';
                break;
            default:
                return false;
        }
    }
private static function resolveTypeFromDoctrineType(string $doctrineType)
    {
        if (isset(self::$doctrineMapping[$doctrineType])) {
            return self::$doctrineMapping[$doctrineType];
        }

        switch ($doctrineType) {
            case 'integer':
            case 'smallint':
            case 'bigint':
                return 'Int';
                break;
            case 'string':
            case 'text':
                return 'String';
                break;
            case 'bool':
            case 'boolean':
                return 'Boolean';
                break;
            case 'float':
            case 'decimal':
                return 'Float';
                break;
            default:
                return false;
        }
    }
private static function resolveTypeFromDoctrineType ( string $ doctrineType ) { if ( isset ( self :: $ doctrineMapping [ $ doctrineType ] ) ) { return self :: $ doctrineMapping [ $ doctrineType ] ; } switch ( $ doctrineType ) { case 'integer' : case 'smallint' : case 'bigint' : return 'Int' ; break ; case 'string' : case 'text' : return 'String' ; break ; case 'bool' : case 'boolean' : return 'Boolean' ; break ; case 'float' : case 'decimal' : return 'Float' ; break ; default : return false ; } }
Resolve a GraphqlType from a doctrine type.

@param string $doctrineType

@return string|false
Resolve a GraphqlType from a doctrine type .