/** * Visits a code interface object. * * @param PHP_Depend_Code_Interface $interface The context code interface. * * @return void * @see PHP_Depend_VisitorI::visitInterface() */ public function visitInterface(PHP_Depend_Code_Interface $interface) { $this->visits[] = $interface->getName(); parent::visitInterface($interface); }
/** * Visits a code interface object. * * @param PHP_Depend_Code_Interface $interface The context code interface. * * @return void * @see PHP_Depend_VisitorI::visitInterface() */ public function visitInterface(PHP_Depend_Code_Interface $interface) { if (!$interface->isUserDefined()) { return; } $doc = $this->abstractClasses->ownerDocument; $classXml = $doc->createElement('Class'); $classXml->setAttribute('sourceFile', (string) $interface->getSourceFile()); $classXml->appendChild($doc->createTextNode($interface->getName())); $this->abstractClasses->appendChild($classXml); }