PHP Class WsdlToPhp\PackageGenerator\Model\Method

Inheritance: extends AbstractModel
Afficher le fichier Open project: wsdltophp/packagegenerator Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

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

getIsUnique() public méthode

Returns the isUnique property
public getIsUnique ( ) : boolean
Résultat boolean

getMethodName() public méthode

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
Résultat string

getOwner() public méthode

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

getParameterType() public méthode

Returns the parameter type
public getParameterType ( ) : string | string[]
Résultat string | string[]

getReservedMethodsInstance() public méthode

public getReservedMethodsInstance ( $filename = null ) : ServiceReservedMethod
$filename
Résultat WsdlToPhp\PackageGenerator\ConfigurationReader\ServiceReservedMethod

getReturnType() public méthode

Returns the retrun type
public getReturnType ( ) : string
Résultat string

setIsUnique() public méthode

Set the isUnique property
public setIsUnique ( $isUnique ) : Method
Résultat Method

setParameterType() public méthode

Set the parameter type
public setParameterType ( $parameterType ) : Method
Résultat Method

setReturnType() public méthode

Set the retrun type
public setReturnType ( $returnType ) : Method
Résultat Method