WsdlToPhp\PackageGenerator\Model\Method::__construct PHP Method

__construct() public method

Main constructor
See also: AbstractModel::__construct()
public __construct ( Generator $generator, string $name, string | array $parameterType, string | array $returnType, Service $service, boolean $isUnique = true )
$generator WsdlToPhp\PackageGenerator\Generator\Generator
$name string the function name
$parameterType string | array the type/name of the parameter
$returnType string | array the type/name of the return value
$service Service defines the struct which owns this value
$isUnique boolean defines if the method is unique or not
    public function __construct(Generator $generator, $name, $parameterType, $returnType, Service $service, $isUnique = true)
    {
        parent::__construct($generator, $name);
        $this->setParameterType($parameterType)->setReturnType($returnType)->setIsUnique($isUnique)->setOwner($service);
    }