private function _generateElements(Type $parameter, TypesElement $element) { list($type, $value) = $this->_prepareTypeAndValue($parameter); $element->setElementAttributes($type, $value, $parameter->getName()); if (!TypeHelper::isSimple($parameter)) { $complexType = $this->_generateComplexType($parameter); $element->setComplex($complexType); } }
protected function _setComplexTypeIfNeeded($complexType, TypesElement $typesElement) { if (TypeHelper::isArray($complexType)) { $typesElement->setComplex($this->_generateArray($complexType)); } elseif ($complexType instanceof Type && !TypeHelper::isSimple($complexType) && $complexType->getComplexType()) { $typesElement->setComplex($this->_generateComplexType($complexType->getComplexType())); } }