PHPMD\Node\MethodNode::getParentName PHP Method

getParentName() public method

Returns the name of the parent type or null when this node has no parent type.
public getParentName ( ) : string
return string
    public function getParentName()
    {
        return $this->getNode()->getParent()->getName();
    }