src/Generator/CodeGenerator.php
private static function fqcn($name, array $imports): string
    {
        // Already FQCN
        if ($name[0] === '\\') {
            return $name;
        }

        // Aliased
        if (array_key_exists($name, $imports)) {
            return '\\' . $imports[$name];
        }

        // Check other imports
        if ($plain = self::getPlainImportIfExists($name, $imports)) {
            return '\\' . $plain;
        }

        // Not a complex type, or otherwise unknown.
        return '';
    }
private static function fqcn($name, array $imports): string
    {
        // Already FQCN
        if ($name[0] === '\\') {
            return $name;
        }

        // Aliased
        if (array_key_exists($name, $imports)) {
            return '\\' . $imports[$name];
        }

        // Check other imports
        if ($plain = self::getPlainImportIfExists($name, $imports)) {
            return '\\' . $plain;
        }

        // Not a complex type, or otherwise unknown.
        return '';
    }
private static function fqcn ( $ name , array $ imports ) : string { // Already FQCN if ( $ name [ 0 ] === '\\' ) { return $ name ; } // Aliased if ( array_key_exists ( $ name , $ imports ) ) { return '\\' . $ imports [ $ name ] ; } // Check other imports if ( $ plain = self :: getPlainImportIfExists ( $ name , $ imports ) ) { return '\\' . $ plain ; } // Not a complex type, or otherwise unknown. return '' ; }
Return the fully qualified class name based on the use statements in
the current file.

@param string   $name
@param string[] $imports
@return string
Return the fully qualified class name based on the use statements in the current file .