PHP Class WsdlToPhp\PackageGenerator\Model\Service

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

Méthodes publiques

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

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

Method Details

__construct() public méthode

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

addMethod() public méthode

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

getContextualPart() public méthode

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

getDocSubPackages() public méthode

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

getExtends() public méthode

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

getMethod() public méthode

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

getMethods() public méthode

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

getReservedMethodsInstance() public méthode

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