PDepend\Source\Language\PHP\PHPBuilder::getClassOrInterface PHP Метод

getClassOrInterface() публичный Метод

This method will try to find an already existing instance for the given qualified name. It will create a new {@link \PDepend\Source\AST\ASTClass} instance when no matching type exists.
С версии: 0.9.5
public getClassOrInterface ( string $qualifiedName ) : PDepend\Source\AST\AbstractASTClassOrInterface
$qualifiedName string
Результат PDepend\Source\AST\AbstractASTClassOrInterface
    public function getClassOrInterface($qualifiedName)
    {
        $classOrInterface = $this->findClass($qualifiedName);
        if ($classOrInterface !== null) {
            return $classOrInterface;
        }
        $classOrInterface = $this->findInterface($qualifiedName);
        if ($classOrInterface !== null) {
            return $classOrInterface;
        }
        return $this->buildClassInternal($qualifiedName);
    }
PHPBuilder