コード例 #1
0
ファイル: Xml.php プロジェクト: KingNoosh/Teknik
 /**
  * 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);
 }