class StructArray extends Struct (View source)

Constants

METHOD_GET_ATTRIBUTE_NAME

METHOD_CURRENT

METHOD_ITEM

METHOD_FIRST

METHOD_LAST

METHOD_OFFSET_GET

METHOD_ADD

Methods

setModel(AbstractModel $model)

No description

defineUseStatements()

No description

from Struct
fillClassConstants(Constant $constants)

No description

from Struct
getConstantAnnotationBlock(PhpConstant $constant)

No description

from Struct
getModelAttributes()

No description

from Struct
fillClassProperties(Property $properties)

No description

from Struct
getPropertyAnnotationBlock(PhpProperty $property)

No description

from Struct
fillClassMethods()

No description

from Struct
addStructMethodConstruct()

No description

from Struct
addStructMethodConstructBody(PhpMethod $method)

No description

from Struct
addStructMethodConstructBodyForAttribute(PhpMethod $method, StructAttribute $attribute, bool $isLast)

No description

from Struct
from Struct
getStructMethodParameter(StructAttribute $attribute)

No description

from Struct
addStructMethodsSetAndGet()

No description

addStructMethodAddTo(StructAttribute $attribute)

Disable this feature within StructArray class.

addStructMethodAddToBody(PhpMethod $method, StructAttribute $attribute)

No description

from Struct
addStructMethodSet(StructAttribute $attribute)

No description

from Struct
addStructMethodSetBody(PhpMethod $method, StructAttribute $attribute)

No description

from Struct
addStructMethodSetBodyAssignment(PhpMethod $method, StructAttribute $attribute, string $parameterName)

No description

from Struct
addStructMethodSetBodyReturn(PhpMethod $method)

No description

from Struct
getStructMethodSetBodyAssignment(StructAttribute $attribute, string $parameterName)

No description

from Struct
addStructMethodGetBody(PhpMethod $method, StructAttribute $attribute, string $thisAccess)

No description

from Struct
addStructMethodGetBodyReturn(PhpMethod $method, StructAttribute $attribute, string $thisAccess)

No description

from Struct
addStructMethodGet(StructAttribute $attribute)

No description

from Struct
getStructMethodGetParameters(StructAttribute $attribute)

No description

from Struct
getMethodAnnotationBlock(PhpMethod $method)

No description

from Struct
getStructMethodAnnotationBlock(PhpMethod $method)

No description

getStructMethodsSetAndGetAnnotationBlock(PhpMethod $method)

No description

from Struct
addStructMethodsSetAndGetAnnotationBlockFromStructAttribute(string $setOrGet, PhpAnnotationBlock $annotationBlock, StructAttribute $attribute)

No description

from Struct
addStructMethodsSetAndGetAnnotationBlockFromScalar(string $setOrGet, PhpAnnotationBlock $annotationBlock, string $attributeName)

No description

from Struct
addStructMethodsSetAnnotationBlock(PhpAnnotationBlock $annotationBlock, string $type, string $name)

No description

from Struct
addStructMethodsGetAnnotationBlock(PhpAnnotationBlock $annotationBlock, string $attributeType)

No description

from Struct
addStructMethodsGetAnnotationBlockFromXmlAttribute(PhpAnnotationBlock $annotationBlock, StructAttribute $attribute)

No description

from Struct
addStructPropertiesToAnnotationBlock(PhpAnnotationBlock $annotationBlock)

No description

from Struct
addStructPropertiesToAnnotationBlockUses(PhpAnnotationBlock $annotationBlock)

No description

from Struct
addStructPropertiesToAnnotationBlockParams(PhpAnnotationBlock $annotationBlock)

No description

from Struct
getStructMethodsAddToAnnotationBlock(PhpMethod $method)

No description

from Struct
getStructMethodsValidateArrayAnnotationBlock(PhpMethod $method)

No description

from Struct
getStructMethodsValidateUnionAnnotationBlock(PhpMethod $method)

No description

from Struct
getStructMethodsValidateChoiceAnnotationBlock(PhpMethod $method)

No description

from Struct
getStructMethodsValidateLengthAnnotationBlock(PhpMethod $method, string $type = '')

No description

from Struct
applyRules(PhpMethod $method, StructAttribute $attribute, string $parameterName, bool $itemType = false)

No description

from Struct
addArrayMethodCurrent()

No description

addArrayMethodItem()

No description

addArrayMethodFirst()

No description

addArrayMethodLast()

No description

addArrayMethodOffsetGet()

No description

addArrayMethodAdd()

No description

addArrayMethodGenericMethod(string $name, string $body, array $methodParameters = [], string $returnType = null)

No description

getArrayMethodGenericAnnotationBlock(string $name, string $description, $param = null)

No description

getArrayMethodBody(string $method, $var = '')

No description

Details

setModel(AbstractModel $model)

Parameters

AbstractModel $model

protected defineUseStatements()

protected fillClassConstants(Constant $constants)

Parameters

Constant $constants

protected getConstantAnnotationBlock(PhpConstant $constant)

Parameters

PhpConstant $constant

protected getModelAttributes()

protected fillClassProperties(Property $properties)

Parameters

Property $properties

protected getPropertyAnnotationBlock(PhpProperty $property)

Parameters

PhpProperty $property

protected fillClassMethods()

protected addStructMethodConstruct()

protected addStructMethodConstructBody(PhpMethod $method)

Parameters

PhpMethod $method

protected addStructMethodConstructBodyForAttribute(PhpMethod $method, StructAttribute $attribute, bool $isLast)

Parameters

PhpMethod $method
StructAttribute $attribute
bool $isLast

protected getStructMethodParametersValues()

protected getStructMethodParameter(StructAttribute $attribute)

Parameters

StructAttribute $attribute

addStructMethodsSetAndGet()

protected addStructMethodAddTo(StructAttribute $attribute)

Disable this feature within StructArray class.

Parameters

StructAttribute $attribute

protected addStructMethodAddToBody(PhpMethod $method, StructAttribute $attribute)

Parameters

PhpMethod $method
StructAttribute $attribute

protected addStructMethodSet(StructAttribute $attribute)

Parameters

StructAttribute $attribute

protected addStructMethodSetBody(PhpMethod $method, StructAttribute $attribute)

Parameters

PhpMethod $method
StructAttribute $attribute

protected addStructMethodSetBodyAssignment(PhpMethod $method, StructAttribute $attribute, string $parameterName)

Parameters

PhpMethod $method
StructAttribute $attribute
string $parameterName

protected addStructMethodSetBodyReturn(PhpMethod $method)

Parameters

PhpMethod $method

protected getStructMethodSetBodyAssignment(StructAttribute $attribute, string $parameterName)

Parameters

StructAttribute $attribute
string $parameterName

protected addStructMethodGetBody(PhpMethod $method, StructAttribute $attribute, string $thisAccess)

Parameters

PhpMethod $method
StructAttribute $attribute
string $thisAccess

protected addStructMethodGetBodyReturn(PhpMethod $method, StructAttribute $attribute, string $thisAccess)

Parameters

PhpMethod $method
StructAttribute $attribute
string $thisAccess

protected addStructMethodGet(StructAttribute $attribute)

Parameters

StructAttribute $attribute

protected getStructMethodGetParameters(StructAttribute $attribute)

Parameters

StructAttribute $attribute

protected getMethodAnnotationBlock(PhpMethod $method)

Parameters

PhpMethod $method

protected getStructMethodAnnotationBlock(PhpMethod $method)

Parameters

PhpMethod $method

protected getStructMethodConstructAnnotationBlock()

protected getStructMethodsSetAndGetAnnotationBlock(PhpMethod $method)

Parameters

PhpMethod $method

protected addStructMethodsSetAndGetAnnotationBlockFromStructAttribute(string $setOrGet, PhpAnnotationBlock $annotationBlock, StructAttribute $attribute)

Parameters

string $setOrGet
PhpAnnotationBlock $annotationBlock
StructAttribute $attribute

protected addStructMethodsSetAndGetAnnotationBlockFromScalar(string $setOrGet, PhpAnnotationBlock $annotationBlock, string $attributeName)

Parameters

string $setOrGet
PhpAnnotationBlock $annotationBlock
string $attributeName

protected addStructMethodsSetAnnotationBlock(PhpAnnotationBlock $annotationBlock, string $type, string $name)

Parameters

PhpAnnotationBlock $annotationBlock
string $type
string $name

protected addStructMethodsGetAnnotationBlock(PhpAnnotationBlock $annotationBlock, string $attributeType)

Parameters

PhpAnnotationBlock $annotationBlock
string $attributeType

protected addStructMethodsGetAnnotationBlockFromXmlAttribute(PhpAnnotationBlock $annotationBlock, StructAttribute $attribute)

Parameters

PhpAnnotationBlock $annotationBlock
StructAttribute $attribute

protected addStructPropertiesToAnnotationBlock(PhpAnnotationBlock $annotationBlock)

Parameters

PhpAnnotationBlock $annotationBlock

protected addStructPropertiesToAnnotationBlockUses(PhpAnnotationBlock $annotationBlock)

Parameters

PhpAnnotationBlock $annotationBlock

protected addStructPropertiesToAnnotationBlockParams(PhpAnnotationBlock $annotationBlock)

Parameters

PhpAnnotationBlock $annotationBlock

protected getStructMethodsAddToAnnotationBlock(PhpMethod $method)

Parameters

PhpMethod $method

protected getStructMethodsValidateArrayAnnotationBlock(PhpMethod $method)

Parameters

PhpMethod $method

protected getStructMethodsValidateUnionAnnotationBlock(PhpMethod $method)

Parameters

PhpMethod $method

protected getStructMethodsValidateChoiceAnnotationBlock(PhpMethod $method)

Parameters

PhpMethod $method

protected getStructMethodsValidateLengthAnnotationBlock(PhpMethod $method, string $type = '')

Parameters

PhpMethod $method
string $type

protected applyRules(PhpMethod $method, StructAttribute $attribute, string $parameterName, bool $itemType = false)

Parameters

PhpMethod $method
StructAttribute $attribute
string $parameterName
bool $itemType

protected addArrayMethodCurrent()

protected addArrayMethodItem()

protected addArrayMethodFirst()

protected addArrayMethodLast()

protected addArrayMethodOffsetGet()

protected addArrayMethodGetAttributeName()

protected addArrayMethodAdd()

protected addArrayMethodGenericMethod(string $name, string $body, array $methodParameters = [], string $returnType = null)

Parameters

string $name
string $body
array $methodParameters
string $returnType

protected getArrayMethodGetAttributeNameAnnotationBlock()

protected getArrayMethodCurrentAnnotationBlock()

protected getArrayMethodFirstAnnotationBlock()

protected getArrayMethodLastAnnotationBlock()

protected getArrayMethodItemAnnotationBlock()

protected getArrayMethodOffsetGetAnnotationBlock()

protected getArrayMethodAddAnnotationBlock()

protected getArrayMethodGenericAnnotationBlock(string $name, string $description, $param = null)

Parameters

string $name
string $description
$param

protected getArrayMethodBody(string $method, $var = '')

Parameters

string $method
$var