PHP Класс WsdlToPhp\PackageGenerator\File\Service

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

Защищенные свойства (Protected)

Свойство Тип Описание
$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

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

Метод Описание
getModel ( ) : Service
getOperationMethodReturnType ( Method $method, Generator $generator ) : string
setModel ( AbstractModel $model ) : Service

Защищенные методы

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

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

addAnnnotationBlockForgetResultMethod() защищенный Метод

protected addAnnnotationBlockForgetResultMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Service
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
Результат Service

addAnnotationBlockForOperationMethod() защищенный Метод

protected addAnnotationBlockForOperationMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Service
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Результат Service

addAnnotationBlockForSoapHeaderMethod() защищенный Метод

protected addAnnotationBlockForSoapHeaderMethod ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Service
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Результат Service

addGetResultMethod() защищенный Метод

protected addGetResultMethod ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Результат Service

addMainMethod() защищенный Метод

protected addMainMethod ( Method $methods, Method $method ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
$method WsdlToPhp\PackageGenerator\Model\Method
Результат Service

addOperationsMethods() защищенный Метод

protected addOperationsMethods ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Результат Service

addSoapHeaderFromMethod() защищенный Метод

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

addSoapHeaderMethods() защищенный Метод

protected addSoapHeaderMethods ( Method $methods ) : Service
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Результат Service

getClassConstants() защищенный Метод

См. также: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getClassConstants()
protected getClassConstants ( Constant $constants )
$constants WsdlToPhp\PackageGenerator\Container\PhpElement\Constant

getClassDeclarationLineText() защищенный Метод

protected getClassDeclarationLineText ( ) : string
Результат string

getClassMethods() защищенный Метод

См. также: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getClassMethods()
protected getClassMethods ( Method $methods )
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method

getClassProperties() защищенный Метод

См. также: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getClassProperties()
protected getClassProperties ( Property $properties )
$properties WsdlToPhp\PackageGenerator\Container\PhpElement\Property

getConstantAnnotationBlock() защищенный Метод

См. также: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getConstantAnnotationBlock()
protected getConstantAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpConstant $constant )
$constant WsdlToPhp\PhpGenerator\Element\PhpConstant

getMethodAnnotationBlock() защищенный Метод

См. также: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getMethodAnnotationBlock()
protected getMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method )
$method WsdlToPhp\PhpGenerator\Element\PhpMethod

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

См. также: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getModel()
public getModel ( ) : Service
Результат WsdlToPhp\PackageGenerator\Model\Service

getModelFromMethod() защищенный Метод

protected getModelFromMethod ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Method | null
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Результат WsdlToPhp\PackageGenerator\Model\Method | null

getOperationMethodReturnType() публичный статический Метод

public static getOperationMethodReturnType ( Method $method, Generator $generator ) : string
$method WsdlToPhp\PackageGenerator\Model\Method
$generator WsdlToPhp\PackageGenerator\Generator\Generator
Результат string

getPropertyAnnotationBlock() защищенный Метод

См. также: WsdlToPhp\PackageGenerator\File\AbstractModelFile::getPropertyAnnotationBlock()
protected getPropertyAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpProperty $property )
$property WsdlToPhp\PhpGenerator\Element\PhpProperty

getServiceReturnTypes() защищенный Метод

protected getServiceReturnTypes ( ) : string
Результат string

getSoapHeaderMethod() защищенный Метод

protected getSoapHeaderMethod ( string $methodName, string $soapHeaderName, string $soapHeaderNamespace, string $soapHeaderType ) : WsdlToPhp\PhpGenerator\Element\PhpMethod
$methodName string
$soapHeaderName string
$soapHeaderNamespace string
$soapHeaderType string
Результат WsdlToPhp\PhpGenerator\Element\PhpMethod

getSoapHeaderMethodName() защищенный Метод

protected getSoapHeaderMethodName ( string $soapHeaderName ) : string
$soapHeaderName string
Результат string

getTypeFromName() защищенный Метод

protected getTypeFromName ( string $name, boolean $namespaced = false ) : string
$name string
$namespaced boolean
Результат string

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

См. также: WsdlToPhp\PackageGenerator\File\AbstractModelFile::setModel()
public setModel ( AbstractModel $model ) : Service
$model WsdlToPhp\PackageGenerator\Model\AbstractModel
Результат Service

setModelFromMethod() защищенный Метод

protected setModelFromMethod ( WsdlToPhp\PhpGenerator\Element\PhpMethod $phpMethod, Method $methodModel ) : Service
$phpMethod WsdlToPhp\PhpGenerator\Element\PhpMethod
$methodModel WsdlToPhp\PackageGenerator\Model\Method
Результат Service

Описание свойств

$methods защищенное свойство

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