src/Psalm/Internal/Analyzer/ClassLikeAnalyzer.php
public static function getFQCLNFromNameObject(
        PhpParser\Node\Name $class_name,
        Aliases $aliases
    ) {
        /** @var string|null */
        $resolved_name = $class_name->getAttribute('resolvedName');

        if ($resolved_name) {
            return $resolved_name;
        }

        if ($class_name instanceof PhpParser\Node\Name\FullyQualified) {
            return implode('\\', $class_name->parts);
        }

        if (in_array($class_name->parts[0], ['self', 'static', 'parent'], true)) {
            return $class_name->parts[0];
        }

        return Type::getFQCLNFromString(
            implode('\\', $class_name->parts),
            $aliases
        );
    }
public static function getFQCLNFromNameObject(
        PhpParser\Node\Name $class_name,
        Aliases $aliases
    ) {
        /** @var string|null */
        $resolved_name = $class_name->getAttribute('resolvedName');

        if ($resolved_name) {
            return $resolved_name;
        }

        if ($class_name instanceof PhpParser\Node\Name\FullyQualified) {
            return implode('\\', $class_name->parts);
        }

        if (in_array($class_name->parts[0], ['self', 'static', 'parent'], true)) {
            return $class_name->parts[0];
        }

        return Type::getFQCLNFromString(
            implode('\\', $class_name->parts),
            $aliases
        );
    }
public static function getFQCLNFromNameObject ( PhpParser \ Node \ Name $ class_name , Aliases $ aliases ) { /** @var string|null */ $ resolved_name = $ class_name -> getAttribute ( 'resolvedName' ) ; if ( $ resolved_name ) { return $ resolved_name ; } if ( $ class_name instanceof PhpParser \ Node \ Name \ FullyQualified ) { return implode ( '\\' , $ class_name -> parts ) ; } if ( in_array ( $ class_name -> parts [ 0 ] , [ 'self' , 'static' , 'parent' ] , true ) ) { return $ class_name -> parts [ 0 ] ; } return Type :: getFQCLNFromString ( implode ( '\\' , $ class_name -> parts ) , $ aliases ) ; }
Gets the fully-qualified class name from a Name object

@param  PhpParser\Node\Name      $class_name
@param  Aliases                  $aliases

@return string
Gets the fully - qualified class name from a Name object