WsdlToPhp\PackageGenerator\Model\Method::__construct PHP 메소드

__construct() 공개 메소드

Main constructor
또한 보기: 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);
    }