class Struct extends AbstractModelFile (View source)

Methods

setModel(AbstractModel $model)

No description

defineUseStatements()

No description

fillClassConstants(Constant $constants)

No description

getConstantAnnotationBlock(PhpConstant $constant)

No description

getModelAttributes()

No description

fillClassProperties(Property $properties)

No description

getPropertyAnnotationBlock(PhpProperty $property)

No description

fillClassMethods()

No description

addStructMethodConstruct()

No description

addStructMethodConstructBody(PhpMethod $method)

No description

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

No description

getStructMethodParameter(StructAttribute $attribute)

No description

addStructMethodsSetAndGet()

No description

addStructMethodAddTo(StructAttribute $attribute)

No description

addStructMethodAddToBody(PhpMethod $method, StructAttribute $attribute)

No description

addStructMethodSet(StructAttribute $attribute)

No description

addStructMethodSetBody(PhpMethod $method, StructAttribute $attribute)

No description

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

No description

addStructMethodSetBodyReturn(PhpMethod $method)

No description

getStructMethodSetBodyAssignment(StructAttribute $attribute, string $parameterName)

No description

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

No description

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

No description

addStructMethodGet(StructAttribute $attribute)

No description

getStructMethodGetParameters(StructAttribute $attribute)

No description

getMethodAnnotationBlock(PhpMethod $method)

No description

getStructMethodAnnotationBlock(PhpMethod $method)

No description

getStructMethodsSetAndGetAnnotationBlock(PhpMethod $method)

No description

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

No description

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

No description

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

No description

addStructMethodsGetAnnotationBlock(PhpAnnotationBlock $annotationBlock, string $attributeType)

No description

addStructMethodsGetAnnotationBlockFromXmlAttribute(PhpAnnotationBlock $annotationBlock, StructAttribute $attribute)

No description

addStructPropertiesToAnnotationBlock(PhpAnnotationBlock $annotationBlock)

No description

addStructPropertiesToAnnotationBlockUses(PhpAnnotationBlock $annotationBlock)

No description

addStructPropertiesToAnnotationBlockParams(PhpAnnotationBlock $annotationBlock)

No description

getStructMethodsAddToAnnotationBlock(PhpMethod $method)

No description

getStructMethodsValidateArrayAnnotationBlock(PhpMethod $method)

No description

getStructMethodsValidateUnionAnnotationBlock(PhpMethod $method)

No description

getStructMethodsValidateChoiceAnnotationBlock(PhpMethod $method)

No description

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

No description

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

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

protected addStructMethodsSetAndGet()

protected addStructMethodAddTo(StructAttribute $attribute)

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