src/DefinitionResolver.php
private static function getContainingClassFqn(Node $node)
    {
        $classNode = $node->getFirstAncestor(Node\Statement\ClassDeclaration::class);
        if ($classNode === null) {
            return null;
        }
        return (string)$classNode->getNamespacedName();
    }
private static function getContainingClassFqn(Node $node)
    {
        $classNode = $node->getFirstAncestor(Node\Statement\ClassDeclaration::class);
        if ($classNode === null) {
            return null;
        }
        return (string)$classNode->getNamespacedName();
    }
private static function getContainingClassFqn ( Node $ node ) { $ classNode = $ node -> getFirstAncestor ( Node \ Statement \ ClassDeclaration :: class ) ; if ( $ classNode === null ) { return null ; } return ( string ) $ classNode -> getNamespacedName ( ) ; }
Returns FQN of the class a node is contained in
Returns null if the class is anonymous or the node is not contained in a class

@param Node $node
@return string|null
Returns FQN of the class a node is contained in Returns null if the class is anonymous or the node is not contained in a class