/** * Visits a code interface object. * * @param \PDepend\Source\AST\ASTInterface $interface * @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($interface->getName())); $this->abstractClasses->appendChild($classXml); }
/** * Visits a code interface object. * * @param \PDepend\Source\AST\ASTInterface $interface * @return void */ public function visitInterface(ASTInterface $interface) { $this->visits[] = $interface->getName(); parent::visitInterface($interface); }