PHP Class WsdlToPhp\PackageGenerator\Model\Service

Inheritance: extends AbstractModel
ファイルを表示 Open project: wsdltophp/packagegenerator Class Usage Examples

Public Methods

Method Description
__construct ( Generator $generator, string $name ) Main constructor
addMethod ( string $methodName, string | array $methodParameterType, string | array $methodReturnType, boolean $methodIsUnique = true ) : Method Adds a method to the service
getContextualPart ( ) : string Returns the contextual part of the class name for the package
getDocSubPackages ( ) : array Returns the sub package name which the model belongs to Must be overridden by sub classes
getExtends ( boolean $short = false ) : string Allows to define from which class the curent model extends
getMethod ( string $methodName ) : Method | null Returns the method by its original name
getMethods ( ) : Method Returns the methods of the service
getReservedMethodsInstance ( $filename = null ) : ServiceReservedMethod

Private Methods

Method Description
setMethods ( Method $methodContainer ) : Service Sets the methods container

Method Details

__construct() public method

Main constructor
See also: AbstractModel::__construct()
public __construct ( Generator $generator, string $name )
$generator WsdlToPhp\PackageGenerator\Generator\Generator
$name string the service name

addMethod() public method

Adds a method to the service
public addMethod ( string $methodName, string | array $methodParameterType, string | array $methodReturnType, boolean $methodIsUnique = true ) : Method
$methodName string original method name
$methodParameterType string | array original parameter type/name
$methodReturnType string | array original return type/name
$methodIsUnique boolean original isUnique value
return Method

getContextualPart() public method

Returns the contextual part of the class name for the package
See also: AbstractModel::getContextualPart()
public getContextualPart ( ) : string
return string

getDocSubPackages() public method

Returns the sub package name which the model belongs to Must be overridden by sub classes
See also: AbstractModel::getDocSubPackages()
public getDocSubPackages ( ) : array
return array

getExtends() public method

Allows to define from which class the curent model extends
public getExtends ( boolean $short = false ) : string
$short boolean
return string

getMethod() public method

Returns the method by its original name
public getMethod ( string $methodName ) : Method | null
$methodName string the original method name
return Method | null

getMethods() public method

Returns the methods of the service
public getMethods ( ) : Method
return WsdlToPhp\PackageGenerator\Container\Model\Method

getReservedMethodsInstance() public method

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