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

getClass() public method

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.
Since: 0.9.5
public getClass ( string $qualifiedName ) : PDepend\Source\AST\ASTClass
$qualifiedName string The full qualified type identifier.
return PDepend\Source\AST\ASTClass
    public function getClass($qualifiedName)
    {
        $class = $this->findClass($qualifiedName);
        if ($class === null) {
            $class = $this->buildClassInternal($qualifiedName);
        }
        return $class;
    }
PHPBuilder