PHP Class WsdlToPhp\PackageGenerator\File\Service

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

Protected Properties

Свойство Type Description
$methods array Method model can't be found in case the original method's name is unclean: - ex: my.operation.name becomes my_operation_name thus the Model from Model\Service::getMethod() can't be found So we store the generated name associated to the original method object

Méthodes publiques

Méthode Description
getModel ( ) : Service
getOperationMethodReturnType ( Method $method, Generator $generator ) : string
setModel ( AbstractModel $model ) : Service

Méthodes protégées

Méthode Description
addAnnnotationBlockForgetResultMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Service
addAnnotationBlockForOperationMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Service
addAnnotationBlockForSoapHeaderMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Service
addGetResultMethod ( Method $methods ) : Service
addMainMethod ( Method $methods, Method $method ) : Service
addOperationsMethods ( Method $methods ) : Service
addSoapHeaderFromMethod ( Method $methods, Method $method )
addSoapHeaderMethods ( Method $methods ) : Service
getClassConstants ( Constant $constants )
getClassDeclarationLineText ( ) : string
getClassMethods ( Method $methods )
getClassProperties ( Property $properties )
getConstantAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpConstant $constant )
getMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method )
getModelFromMethod ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Method | null
getPropertyAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpProperty $property )
getServiceReturnTypes ( ) : string
getSoapHeaderMethod ( string $methodName, string $soapHeaderName, string $soapHeaderNamespace, string $soapHeaderType ) : WsdlToPhp\PhpGenerator\Element\PhpMethod
getSoapHeaderMethodName ( string $soapHeaderName ) : string
getTypeFromName ( string $name, boolean $namespaced = false ) : string
setModelFromMethod ( WsdlToPhp\PhpGenerator\Element\PhpMethod $phpMethod, Method $methodModel ) : Service

Method Details

addAnnnotationBlockForgetResultMethod() protected méthode

protected addAnnnotationBlockForgetResultMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Service
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
Résultat Service

addAnnotationBlockForOperationMethod() protected méthode

protected addAnnotationBlockForOperationMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Service
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat Service

addAnnotationBlockForSoapHeaderMethod() protected méthode

protected addAnnotationBlockForSoapHeaderMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Service
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat Service

addGetResultMethod() protected méthode

protected addGetResultMethod ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Résultat Service

addMainMethod() protected méthode

protected addMainMethod ( Method $methods, Method $method ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
$method WsdlToPhp\PackageGenerator\Model\Method
Résultat Service

addOperationsMethods() protected méthode

protected addOperationsMethods ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Résultat Service

addSoapHeaderFromMethod() protected méthode

protected addSoapHeaderFromMethod ( Method $methods, Method $method )
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
$method WsdlToPhp\PackageGenerator\Model\Method

addSoapHeaderMethods() protected méthode

protected addSoapHeaderMethods ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Résultat Service

getClassConstants() protected méthode

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getClassConstants()
protected getClassConstants ( Constant $constants )
$constants WsdlToPhp\PackageGenerator\Container\PhpElement\Constant

getClassDeclarationLineText() protected méthode

protected getClassDeclarationLineText ( ) : string
Résultat string

getClassMethods() protected méthode

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getClassMethods()
protected getClassMethods ( Method $methods )
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method

getClassProperties() protected méthode

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getClassProperties()
protected getClassProperties ( Property $properties )
$properties WsdlToPhp\PackageGenerator\Container\PhpElement\Property

getConstantAnnotationBlock() protected méthode

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getConstantAnnotationBlock()
protected getConstantAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpConstant $constant )
$constant WsdlToPhp\PhpGenerator\Element\PhpConstant

getMethodAnnotationBlock() protected méthode

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getMethodAnnotationBlock()
protected getMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method )
$method WsdlToPhp\PhpGenerator\Element\PhpMethod

getModel() public méthode

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getModel()
public getModel ( ) : Service
Résultat WsdlToPhp\PackageGenerator\Model\Service

getModelFromMethod() protected méthode

protected getModelFromMethod ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Method | null
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat WsdlToPhp\PackageGenerator\Model\Method | null

getOperationMethodReturnType() public static méthode

public static getOperationMethodReturnType ( Method $method, Generator $generator ) : string
$method WsdlToPhp\PackageGenerator\Model\Method
$generator WsdlToPhp\PackageGenerator\Generator\Generator
Résultat string

getPropertyAnnotationBlock() protected méthode

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getPropertyAnnotationBlock()
protected getPropertyAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpProperty $property )
$property WsdlToPhp\PhpGenerator\Element\PhpProperty

getServiceReturnTypes() protected méthode

protected getServiceReturnTypes ( ) : string
Résultat string

getSoapHeaderMethod() protected méthode

protected getSoapHeaderMethod ( string $methodName, string $soapHeaderName, string $soapHeaderNamespace, string $soapHeaderType ) : WsdlToPhp\PhpGenerator\Element\PhpMethod
$methodName string
$soapHeaderName string
$soapHeaderNamespace string
$soapHeaderType string
Résultat WsdlToPhp\PhpGenerator\Element\PhpMethod

getSoapHeaderMethodName() protected méthode

protected getSoapHeaderMethodName ( string $soapHeaderName ) : string
$soapHeaderName string
Résultat string

getTypeFromName() protected méthode

protected getTypeFromName ( string $name, boolean $namespaced = false ) : string
$name string
$namespaced boolean
Résultat string

setModel() public méthode

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::setModel()
public setModel ( AbstractModel $model ) : Service
$model WsdlToPhp\PackageGenerator\Model\AbstractModel
Résultat Service

setModelFromMethod() protected méthode

protected setModelFromMethod ( WsdlToPhp\PhpGenerator\Element\PhpMethod $phpMethod, Method $methodModel ) : Service
$phpMethod WsdlToPhp\PhpGenerator\Element\PhpMethod
$methodModel WsdlToPhp\PackageGenerator\Model\Method
Résultat Service

Property Details

$methods protected_oe property

Method model can't be found in case the original method's name is unclean: - ex: my.operation.name becomes my_operation_name thus the Model from Model\Service::getMethod() can't be found So we store the generated name associated to the original method object
protected array $methods
Résultat array