PDepend\Source\Language\PHP\PHPBuilder::findClass PHP Method

findClass() protected method

This method tries to find a class instance matching for the given qualified name in all scopes already processed. It will return the best matching instance or null if no match exists.
Since: 0.9.5
protected findClass ( string $qualifiedName ) : PDepend\Source\AST\ASTClass
$qualifiedName string
return PDepend\Source\AST\ASTClass
    protected function findClass($qualifiedName)
    {
        $this->freeze();
        $class = $this->findType($this->frozenClasses, $qualifiedName);
        if ($class === null) {
            $class = $this->findType($this->classes, $qualifiedName);
        }
        return $class;
    }
PHPBuilder