PHP Класс WsdlToPhp\PackageGenerator\Model\Method

Наследование: extends AbstractModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Описание методов

__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

getCleanName() публичный Метод

Method name can't starts with numbers
См. также: WsdlToPhp\PackageGenerator\Model\AbstractModel::getCleanName()
public getCleanName ( $keepMultipleUnderscores = true ) : string
Результат string

getIsUnique() публичный Метод

Returns the isUnique property
public getIsUnique ( ) : boolean
Результат boolean

getMethodName() публичный Метод

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
Результат string

getOwner() публичный Метод

Returns the owner model object, meaning a Service object
См. также: AbstractModel::getOwner()
public getOwner ( ) : Service
Результат Service

getParameterType() публичный Метод

Returns the parameter type
public getParameterType ( ) : string | string[]
Результат string | string[]

getReservedMethodsInstance() публичный Метод

public getReservedMethodsInstance ( $filename = null ) : ServiceReservedMethod
$filename
Результат WsdlToPhp\PackageGenerator\ConfigurationReader\ServiceReservedMethod

getReturnType() публичный Метод

Returns the retrun type
public getReturnType ( ) : string
Результат string

setIsUnique() публичный Метод

Set the isUnique property
public setIsUnique ( $isUnique ) : Method
Результат Method

setParameterType() публичный Метод

Set the parameter type
public setParameterType ( $parameterType ) : Method
Результат Method

setReturnType() публичный Метод

Set the retrun type
public setReturnType ( $returnType ) : Method
Результат Method