PHP Class WsdlToPhp\PackageGenerator\File\Struct

Inheritance: extends AbstractModelFile
Show file Open project: wsdltophp/packagegenerator Class Usage Examples

Public Methods

Method Description
getModel ( ) : Struct
setModel ( AbstractModel $model ) : StructArray

Protected Methods

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

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

addStructMethodAddToBody() protected method

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

addStructMethodConstruct() protected method

protected addStructMethodConstruct ( Method $methods ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
return Struct

addStructMethodConstructBody() protected method

protected addStructMethodConstructBody ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
return Struct

addStructMethodConstructBodyForAttribute() protected method

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

addStructMethodGet() protected method

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

addStructMethodGetBody() protected method

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

addStructMethodGetBodyForXml() protected method

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

addStructMethodGetBodyReturn() protected method

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

addStructMethodSet() protected method

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

addStructMethodSetBody() protected method

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

addStructMethodSetBodyAssignment() protected method

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

addStructMethodSetBodyForRestriction() protected method

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
return Struct

addStructMethodSetBodyReturn() protected method

protected addStructMethodSetBodyReturn ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : Struct
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
return Struct

addStructMethodSetState() protected method

protected addStructMethodSetState ( Method $methods ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
return Struct

addStructMethodsGetAnnotationBlock() protected method

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

addStructMethodsGetAnnotationBlockFromXmlAttribute() protected method

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

addStructMethodsSetAndGet() protected method

protected addStructMethodsSetAndGet ( Method $methods ) : Struct
$methods WsdlToPhp\PackageGenerator\Container\PhpElement\Method
return Struct

addStructMethodsSetAndGetAnnotationBlockFromScalar() protected method

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

addStructMethodsSetAndGetAnnotationBlockFromStructAttribute() protected method

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

addStructMethodsSetAnnotationBlock() protected method

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

addStructPropertiesToAnnotationBlock() protected method

protected addStructPropertiesToAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
return Struct

addStructPropertiesToAnnotationBlockParams() protected method

protected addStructPropertiesToAnnotationBlockParams ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
return Struct

addStructPropertiesToAnnotationBlockUses() protected method

protected addStructPropertiesToAnnotationBlockUses ( WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock $annotationBlock ) : Struct
$annotationBlock WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
return Struct

getClassConstants() protected method

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

getClassMethods() protected method

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

getClassProperties() protected method

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

protected getMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
return WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null

getModel() public method

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

getModelAttributes() protected method

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
return WsdlToPhp\PackageGenerator\Container\Model\StructAttribute

getPropertyAnnotationBlock() protected method

protected getPropertyAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpProperty $property ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$property WsdlToPhp\PhpGenerator\Element\PhpProperty
return WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getStructMethodAnnotationBlock() protected method

protected getStructMethodAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
return WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock | null

getStructMethodConstructAnnotationBlock() protected method

protected getStructMethodConstructAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
return WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getStructMethodGetParameters() protected method

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

getStructMethodParameter() protected method

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

getStructMethodParameterType() protected method

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

getStructMethodParametersValues() protected method

protected getStructMethodParametersValues ( ) : WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter[]
return WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter[]

getStructMethodSetBodyAssignment() protected method

protected getStructMethodSetBodyAssignment ( StructAttribute $attribute, string $parameterName ) : string
$attribute WsdlToPhp\PackageGenerator\Model\StructAttribute
$parameterName string
return string

getStructMethodSetStateAnnotationBlock() protected method

protected getStructMethodSetStateAnnotationBlock ( ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
return WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getStructMethodsAddToAnnotationBlock() protected method

protected getStructMethodsAddToAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
return WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

getStructMethodsSetAndGetAnnotationBlock() protected method

protected getStructMethodsSetAndGetAnnotationBlock ( WsdlToPhp\PhpGenerator\Element\PhpMethod $method ) : WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock
$method WsdlToPhp\PhpGenerator\Element\PhpMethod
return WsdlToPhp\PhpGenerator\Element\PhpAnnotationBlock

setModel() public method

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