PDepend\Source\Language\PHP\AbstractPHPParser::getNamespaceOrPackageName PHP Method

getNamespaceOrPackageName() private method

Returns the name of a declared names. When the parsed code is not namespaced this method will return the name from the @package annotation.
Since: 0.9.8
private getNamespaceOrPackageName ( ) : string
return string
    private function getNamespaceOrPackageName()
    {
        if ($this->namespaceName === null) {
            return $this->packageName;
        }
        return $this->namespaceName;
    }
AbstractPHPParser