PHP Class WsdlToPhp\PackageGenerator\File\Struct

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

Méthodes publiques

Méthode Description
getModel ( ) : Struct
setModel ( AbstractModel $model ) : StructArray

Méthodes protégées

Méthode Description
addStructMethodAddTo ( Method $methods, StructAttribute $attribute ) : Struct
addStructMethodAddToBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute ) : Struct
addStructMethodConstruct ( Method $methods ) : Struct
addStructMethodConstructBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Struct
addStructMethodConstructBodyForAttribute ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, boolean $isLast ) : Struct
addStructMethodGet ( Method $methods, StructAttribute $attribute ) : Struct
addStructMethodGetBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, string $thisAccess ) : Struct
addStructMethodGetBodyForXml ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, string $thisAccess ) : Struct
addStructMethodGetBodyReturn ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, string $thisAccess ) : Struct
addStructMethodSet ( Method $methods, StructAttribute $attribute ) : Struct
addStructMethodSetBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute ) : Struct
addStructMethodSetBodyAssignment ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute ) : Struct
addStructMethodSetBodyForRestriction ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, string $parameterName = null ) : Struct
addStructMethodSetBodyReturn ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Struct
addStructMethodSetState ( Method $methods ) : Struct
addStructMethodsGetAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, string $attributeType ) : Struct
addStructMethodsGetAnnotationBlockFromXmlAttribute ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, StructAttribute $attribute ) : Struct
addStructMethodsSetAndGet ( Method $methods ) : Struct
addStructMethodsSetAndGetAnnotationBlockFromScalar ( string $setOrGet, WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, string $attributeName ) : Struct
addStructMethodsSetAndGetAnnotationBlockFromStructAttribute ( string $setOrGet, WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, StructAttribute $attribute ) : Struct
addStructMethodsSetAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, string $type, string $name ) : Struct
addStructPropertiesToAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
addStructPropertiesToAnnotationBlockParams ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
addStructPropertiesToAnnotationBlockUses ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
getClassConstants ( Constant $constants )
getClassMethods ( Method $methods )
getClassProperties ( Property $properties )
getConstantAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpConstant $constant )
getMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
getModelAttributes ( boolean $includeInheritanceAttributes = false, boolean $requiredFirst = true ) : StructAttribute
getPropertyAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpProperty $property ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
getStructMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
getStructMethodConstructAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
getStructMethodGetParameters ( StructAttribute $attribute ) : WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter[]
getStructMethodParameter ( StructAttribute $attribute, boolean $lowCaseFirstLetter = false, mixed $defaultValue = null ) : WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter
getStructMethodParameterType ( StructAttribute $attribute, boolean $returnArrayType = true ) : string | null
getStructMethodParametersValues ( ) : WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter[]
getStructMethodSetBodyAssignment ( StructAttribute $attribute, string $parameterName ) : string
getStructMethodSetStateAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
getStructMethodsAddToAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
getStructMethodsSetAndGetAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

Method Details

addStructMethodAddTo() protected méthode

protected addStructMethodAddTo ( Method $methods, StructAttribute $attribute ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat Struct

addStructMethodAddToBody() protected méthode

protected addStructMethodAddToBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat Struct

addStructMethodConstruct() protected méthode

protected addStructMethodConstruct ( Method $methods ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Résultat Struct

addStructMethodConstructBody() protected méthode

protected addStructMethodConstructBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat Struct

addStructMethodConstructBodyForAttribute() protected méthode

protected addStructMethodConstructBodyForAttribute ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, boolean $isLast ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$isLast boolean
Résultat Struct

addStructMethodGet() protected méthode

protected addStructMethodGet ( Method $methods, StructAttribute $attribute ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat Struct

addStructMethodGetBody() protected méthode

protected addStructMethodGetBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, string $thisAccess ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$thisAccess string
Résultat Struct

addStructMethodGetBodyForXml() protected méthode

protected addStructMethodGetBodyForXml ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, string $thisAccess ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$thisAccess string
Résultat Struct

addStructMethodGetBodyReturn() protected méthode

protected addStructMethodGetBodyReturn ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, string $thisAccess ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$thisAccess string
Résultat Struct

addStructMethodSet() protected méthode

protected addStructMethodSet ( Method $methods, StructAttribute $attribute ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat Struct

addStructMethodSetBody() protected méthode

protected addStructMethodSetBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat Struct

addStructMethodSetBodyAssignment() protected méthode

protected addStructMethodSetBodyAssignment ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat Struct

addStructMethodSetBodyForRestriction() protected méthode

protected addStructMethodSetBodyForRestriction ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method, StructAttribute $attribute, string $parameterName = null ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$parameterName string
Résultat Struct

addStructMethodSetBodyReturn() protected méthode

protected addStructMethodSetBodyReturn ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat Struct

addStructMethodSetState() protected méthode

protected addStructMethodSetState ( Method $methods ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Résultat Struct

addStructMethodsGetAnnotationBlock() protected méthode

protected addStructMethodsGetAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, string $attributeType ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$attributeType string
Résultat Struct

addStructMethodsGetAnnotationBlockFromXmlAttribute() protected méthode

protected addStructMethodsGetAnnotationBlockFromXmlAttribute ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, StructAttribute $attribute ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat Struct

addStructMethodsSetAndGet() protected méthode

protected addStructMethodsSetAndGet ( Method $methods ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
Résultat Struct

addStructMethodsSetAndGetAnnotationBlockFromScalar() protected méthode

protected addStructMethodsSetAndGetAnnotationBlockFromScalar ( string $setOrGet, WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, string $attributeName ) : Struct
$setOrGet string
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$attributeName string
Résultat Struct

addStructMethodsSetAndGetAnnotationBlockFromStructAttribute() protected méthode

protected addStructMethodsSetAndGetAnnotationBlockFromStructAttribute ( string $setOrGet, WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, StructAttribute $attribute ) : Struct
$setOrGet string
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat Struct

addStructMethodsSetAnnotationBlock() protected méthode

protected addStructMethodsSetAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock, string $type, string $name ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$type string
$name string
Résultat Struct

addStructPropertiesToAnnotationBlock() protected méthode

protected addStructPropertiesToAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
Résultat Struct

addStructPropertiesToAnnotationBlockParams() protected méthode

protected addStructPropertiesToAnnotationBlockParams ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
Résultat Struct

addStructPropertiesToAnnotationBlockUses() protected méthode

protected addStructPropertiesToAnnotationBlockUses ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
Résultat Struct

getClassConstants() protected méthode

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

getClassMethods() protected méthode

protected getClassMethods ( Method $methods )
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method

getClassProperties() protected méthode

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

protected getMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null

getModel() public méthode

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

getModelAttributes() protected méthode

protected getModelAttributes ( boolean $includeInheritanceAttributes = false, boolean $requiredFirst = true ) : StructAttribute
$includeInheritanceAttributes boolean include the attributes of parent class, default parent attributes are not included. If true, then the array is an associative array containing and index "attribute" for the StructAttribute object and an index "model" for the Struct object.
$requiredFirst boolean places the required attributes first, then the not required in order to have the _contrust method with the required attribute at first
Résultat WsdlToPhp\PackageGenerator\Container\Model\StructAttribute

getPropertyAnnotationBlock() protected méthode

protected getPropertyAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpProperty $property ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$property WsdlToPhp\PhpGenerator\Element\PhpProperty
Résultat WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getStructMethodAnnotationBlock() protected méthode

protected getStructMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null

getStructMethodConstructAnnotationBlock() protected méthode

protected getStructMethodConstructAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
Résultat WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getStructMethodGetParameters() protected méthode

protected getStructMethodGetParameters ( StructAttribute $attribute ) : WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter[]
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
Résultat WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter[]

getStructMethodParameter() protected méthode

protected getStructMethodParameter ( StructAttribute $attribute, boolean $lowCaseFirstLetter = false, mixed $defaultValue = null ) : WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$lowCaseFirstLetter boolean
$defaultValue mixed
Résultat WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter

getStructMethodParameterType() protected méthode

protected getStructMethodParameterType ( StructAttribute $attribute, boolean $returnArrayType = true ) : string | null
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$returnArrayType boolean
Résultat string | null

getStructMethodParametersValues() protected méthode

protected getStructMethodParametersValues ( ) : WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter[]
Résultat WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter[]

getStructMethodSetBodyAssignment() protected méthode

protected getStructMethodSetBodyAssignment ( StructAttribute $attribute, string $parameterName ) : string
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$parameterName string
Résultat string

getStructMethodSetStateAnnotationBlock() protected méthode

protected getStructMethodSetStateAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
Résultat WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getStructMethodsAddToAnnotationBlock() protected méthode

protected getStructMethodsAddToAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getStructMethodsSetAndGetAnnotationBlock() protected méthode

protected getStructMethodsSetAndGetAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
Résultat WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

setModel() public méthode

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