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

getInterface() 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\ASTInterface} instance when no matching type exists.
Since: 0.9.5
public getInterface ( string $qualifiedName ) : PDepend\Source\AST\ASTInterface
$qualifiedName string
return PDepend\Source\AST\ASTInterface
    public function getInterface($qualifiedName)
    {
        $interface = $this->findInterface($qualifiedName);
        if ($interface === null) {
            $interface = $this->buildInterfaceInternal($qualifiedName);
        }
        return $interface;
    }
PHPBuilder