Permalink
Browse files

[UPDATE] enhancement

[UPDATE] don't generate structs that don't contain any attribute and
don't inherit from generated struct
  • Loading branch information...
1 parent 282a495 commit a37f1f45e0c3e39b642cde751904b946508fb707 @mikaelcom committed Jan 14, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 WsdlToPhpGenerator.php
@@ -632,7 +632,7 @@ private function generateStructsClasses($_rootDirectory,$_rootDirectoryRights)
unset($structTmp,$structsToGenerateDone);
foreach($structs as $structName=>$struct)
{
- if(!$struct->getIsStruct())
+ if(!$struct->getIsStruct() || (count($struct->getAttributes()) === 0 && $struct->getInheritance() == ''))
continue;
$elementFolder = $this->getDirectory($_rootDirectory,$_rootDirectoryRights,$struct->getCleanName());
$structsClassesFiles[] = $structClassFileName = $elementFolder . $struct->getPackagedName() . '.php';
@@ -2144,8 +2144,8 @@ private function getSubCategory($_string)
}
/**
* Get gather name class
- * @param string $_string element name
- * @return string
+ * @param string $_string element name
+ * @return string
*/
private function getGather($_string)
{

0 comments on commit a37f1f4

Please sign in to comment.