src/DefinitionResolver.php
private function getContainingClassType(Node $node)
    {
        $classFqn = $this->getContainingClassFqn($node);
        return $classFqn ? new Types\Object_(new Fqsen('\\' . $classFqn)) : null;
    }
private function getContainingClassType(Node $node)
    {
        $classFqn = $this->getContainingClassFqn($node);
        return $classFqn ? new Types\Object_(new Fqsen('\\' . $classFqn)) : null;
    }
private function getContainingClassType ( Node $ node ) { $ classFqn = $ this -> getContainingClassFqn ( $ node ) ; return $ classFqn ? new Types \ Object_ ( new Fqsen ( '\\' . $ classFqn ) ) : null ; }
Returns the type 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 The node used to find the containing class

@return Types\Object_|null
Returns the type of the class a node is contained in Returns null if the class is anonymous or the node is not contained in a class