PDepend\Source\Language\PHP\AbstractPHPParser::getNamespaceOrPackageName PHP Méthode

getNamespaceOrPackageName() private méthode

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
Résultat string
    private function getNamespaceOrPackageName()
    {
        if ($this->namespaceName === null) {
            return $this->packageName;
        }
        return $this->namespaceName;
    }
AbstractPHPParser