PDepend\Report\Jdepend\Xml::visitInterface PHP Method

visitInterface() public method

Visits a code interface object.
public visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void
$interface PDepend\Source\AST\ASTInterface
return void
    public function visitInterface(ASTInterface $interface)
    {
        if (!$interface->isUserDefined()) {
            return;
        }
        $doc = $this->abstractClasses->ownerDocument;
        $classXml = $doc->createElement('Class');
        $classXml->setAttribute('sourceFile', (string) $interface->getCompilationUnit());
        $classXml->appendChild($doc->createTextNode(Utf8Util::ensureEncoding($interface->getName())));
        $this->abstractClasses->appendChild($classXml);
    }