public function typeReturning(MethodParser $method) { $element = new TypesElement(); $element->setName($method->getName() . 'Response'); $returning = $method->returning(); $this->_generateElements($returning, $element); return $element; }
public function typeReturning(MethodParser $method) { $element = new TypesElement(); $element->setName($method->getName() . 'Response'); foreach ($method->returning() as $parameter) { $this->_generateElements($parameter, $element); } return $element; }
protected function _generateObject(Type $parameter) { $typesElement = new TypesElement(); $typesElement->setName($this->_getObjectName($parameter)); $types = is_array($parameter->getComplexType()) ? $parameter->getComplexType() : $parameter->getComplexType()->getComplexType(); foreach ($types as $complexType) { if ($complexType instanceof Type) { list($type, $value) = $this->_prepareTypeAndValue($complexType); } else { $type = 'type'; $value = TypeHelper::getXsdType($complexType->getType()); } $typesElement->setElementAttributes($type, $value, $complexType->getName()); $this->_setComplexTypeIfNeeded($complexType, $typesElement); } return $typesElement; }