PHP Class WsdlToPhp\PackageGenerator\Model\Method

Inheritance: extends AbstractModel
Mostrar archivo Open project: wsdltophp/packagegenerator Class Usage Examples

Public Methods

Method Description
__construct ( Generator $generator, string $name, string | array $parameterType, string | array $returnType, Service $service, boolean $isUnique = true ) Main constructor
getCleanName ( $keepMultipleUnderscores = true ) : string Method name can't starts with numbers
getIsUnique ( ) : boolean Returns the isUnique property
getMethodName ( ) : string Returns the name of the method that is used to call the operation It takes care of the fact that the method might not be the only one named as it is.
getOwner ( ) : Service Returns the owner model object, meaning a Service object
getParameterType ( ) : string | string[] Returns the parameter type
getReservedMethodsInstance ( $filename = null ) : ServiceReservedMethod
getReturnType ( ) : string Returns the retrun type
setIsUnique ( $isUnique ) : Method Set the isUnique property
setParameterType ( $parameterType ) : Method Set the parameter type
setReturnType ( $returnType ) : Method Set the retrun type

Method Details

__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

getCleanName() public method

Method name can't starts with numbers
See also: WsdlToPhp\PackageGenerator\Model\AbstractModel::getCleanName()
public getCleanName ( $keepMultipleUnderscores = true ) : string
return string

getIsUnique() public method

Returns the isUnique property
public getIsUnique ( ) : boolean
return boolean

getMethodName() public method

Returns the name of the method that is used to call the operation It takes care of the fact that the method might not be the only one named as it is.
public getMethodName ( ) : string
return string

getOwner() public method

Returns the owner model object, meaning a Service object
See also: AbstractModel::getOwner()
public getOwner ( ) : Service
return Service

getParameterType() public method

Returns the parameter type
public getParameterType ( ) : string | string[]
return string | string[]

getReservedMethodsInstance() public method

public getReservedMethodsInstance ( $filename = null ) : ServiceReservedMethod
$filename
return WsdlToPhp\PackageGenerator\ConfigurationReader\ServiceReservedMethod

getReturnType() public method

Returns the retrun type
public getReturnType ( ) : string
return string

setIsUnique() public method

Set the isUnique property
public setIsUnique ( $isUnique ) : Method
return Method

setParameterType() public method

Set the parameter type
public setParameterType ( $parameterType ) : Method
return Method

setReturnType() public method

Set the retrun type
public setReturnType ( $returnType ) : Method
return Method