PHPMD\Node\MethodNode::getNamespaceName PHP Method

getNamespaceName() public method

Returns the name of the parent package.
public getNamespaceName ( ) : string
return string
    public function getNamespaceName()
    {
        return $this->getNode()->getParent()->getNamespace()->getName();
    }