Ejemplo n.º 1
0
 public function typeReturning(MethodParser $method)
 {
     $element = new TypesElement();
     $element->setName($method->getName() . 'Response');
     $returning = $method->returning();
     $this->_generateElements($returning, $element);
     return $element;
 }
Ejemplo n.º 2
0
 public function typeReturning(MethodParser $method)
 {
     $element = new TypesElement();
     $element->setName($method->getName() . 'Response');
     foreach ($method->returning() as $parameter) {
         $this->_generateElements($parameter, $element);
     }
     return $element;
 }
Ejemplo n.º 3
0
 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;
 }