/** * Returns the comments for the class * @uses WsdlToPhpModel::getPackagedName() * @uses WsdlToPhpGenerator::getOptionAddComments() * @uses WsdlToPhpModel::getDocumentation() * @uses WsdlToPhpModel::addMetaComment() * @uses WsdlToPhpModel::getDocSubPackages() * @uses WsdlToPhpStruct::getIsStruct() * @uses WsdlToPhpGenerator::getPackageName() * @return array */ private function getClassComment() { $comments = array(); array_push($comments, 'This class stands for ' . $this->getPackagedName() . ' originally named ' . $this->getName()); if ($this->getDocumentation() != '') { array_push($comments, 'Documentation : ' . $this->getDocumentation()); } $this->addMetaComment($comments, false, true); if ($this->getInheritance() != '') { $inheritedModel = self::getModelByName($this->getInheritance()); /** * A virtual struct exists only to store meta informations about itself * So don't add meta informations about a valid struct */ if ($inheritedModel && !$inheritedModel->getIsStruct()) { $inheritedModel->addMetaComment($comments, false, false); } } array_push($comments, '@package ' . WsdlToPhpGenerator::getPackageName()); if (count($this->getDocSubPackages())) { array_push($comments, '@subpackage ' . implode(',', $this->getDocSubPackages())); } if (count(WsdlToPhpGenerator::getOptionAddComments())) { foreach (WsdlToPhpGenerator::getOptionAddComments() as $tagName => $tagValue) { array_push($comments, "@{$tagName} {$tagValue}"); } } return $comments; }