WsdlToPhp\PackageGenerator\Model\Method::getReturnType PHP Method

getReturnType() public method

Returns the retrun type
public getReturnType ( ) : string
return string
    public function getReturnType()
    {
        return $this->returnType;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param MethodModel $method
  * @return string
  */
 public static function getOperationMethodReturnType(MethodModel $method, Generator $generator)
 {
     $returnType = $method->getReturnType();
     if (($struct = $generator->getStruct($returnType)) instanceof StructModel && !$struct->getIsRestriction()) {
         if ($struct->getIsStruct()) {
             $returnType = $struct->getPackagedName(true);
         } elseif ($struct->isArray()) {
             if (($structInheritance = $struct->getInheritanceStruct()) instanceof StructModel) {
                 $returnType = sprintf('%s[]', $structInheritance->getPackagedName(true));
             } else {
                 $returnType = $struct->getInheritance();
             }
         }
     }
     return $returnType;
 }
All Usage Examples Of WsdlToPhp\PackageGenerator\Model\Method::getReturnType