PHP Class WsdlToPhp\PackageGenerator\File\Service

Inheritance: extends AbstractModelFile
Datei anzeigen Open project: wsdltophp/packagegenerator Class Usage Examples

Protected Properties

Property 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

Public Methods

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

Protected Methods

Method 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 method

protected addAnnnotationBlockForgetResultMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Service
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
return Service

addAnnotationBlockForOperationMethod() protected method

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

addAnnotationBlockForSoapHeaderMethod() protected method

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

addGetResultMethod() protected method

protected addGetResultMethod ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
return Service

addMainMethod() protected method

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

addOperationsMethods() protected method

protected addOperationsMethods ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
return Service

addSoapHeaderFromMethod() protected method

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

addSoapHeaderMethods() protected method

protected addSoapHeaderMethods ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
return Service

getClassConstants() protected method

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

getClassDeclarationLineText() protected method

protected getClassDeclarationLineText ( ) : string
return string

getClassMethods() protected method

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

getClassProperties() protected method

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

getConstantAnnotationBlock() protected method

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

getMethodAnnotationBlock() protected method

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

getModel() public method

See also: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getModel()
public getModel ( ) : Service
return WsdlToPhp\PackageGenerator\Model\Service

getModelFromMethod() protected method

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

getOperationMethodReturnType() public static method

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

getPropertyAnnotationBlock() protected method

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

getServiceReturnTypes() protected method

protected getServiceReturnTypes ( ) : string
return string

getSoapHeaderMethod() protected method

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

getSoapHeaderMethodName() protected method

protected getSoapHeaderMethodName ( string $soapHeaderName ) : string
$soapHeaderName string
return string

getTypeFromName() protected method

protected getTypeFromName ( string $name, boolean $namespaced = false ) : string
$name string
$namespaced boolean
return string

setModel() public method

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

setModelFromMethod() protected method

protected setModelFromMethod ( WsdlToPhp\PhpGenerator\Element\PhpMethod $phpMethod, Method $methodModel ) : Service
$phpMethod WsdlToPhp\PhpGenerator\Element\PhpMethod
$methodModel WsdlToPhp\PackageGenerator\Model\Method
return 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
return array