메소드 | 설명 | |
---|---|---|
__construct ( |
Main constructor | |
addAttribute ( string $attributeName, string $attributeType ) : |
Adds attribute based on its original name | |
addValue ( mixed $value ) : |
Adds value to values array | |
countOwnAttributes ( ) : integer | Returns the number of own attributes | |
getAttribute ( string $attributeName ) : |
Returns the attribute by its name, otherwise null | |
getAttributes ( boolean $includeInheritanceAttributes = false, boolean $requiredFirst = false ) : |
Returns the attributes of the struct and potentially from the parent class | |
getContextualPart ( ) : string | Returns the contextual part of the class name for the package | |
getDocSubPackages ( ) : array | Returns the sub package name which the model belongs to Must be overridden by sub classes | |
getExtends ( boolean $short = false ) : string | Allows to define from which class the curent model extends | |
getInheritanceStruct ( ) : |
||
getIsRestriction ( ) : boolean | Returns the isRestriction value | |
getIsStruct ( ) : boolean | Returns the isStruct value | |
getMeta ( ) : string[] | ||
getReservedMethodsInstance ( $filename = null ) : |
||
getTopInheritance ( ) : |
||
getValue ( string $value ) : |
Gets the value object for the given value | |
getValues ( ) : |
Returns the values for an enumeration | |
isArray ( ) : boolean | Returns true if the current struct is a collection of values (like an array) | |
setAttributes ( |
Sets the attributes of the struct | |
setIsRestriction ( boolean $isRestriction = true ) : |
Sets the isRestriction value | |
setIsStruct ( boolean $isStruct = true ) : |
Sets the isStruct value |
메소드 | 설명 | |
---|---|---|
addInheritanceAttributes ( |
||
getAllAttributes ( boolean $includeInheritanceAttributes, boolean $requiredFirst ) : |
||
putRequiredFirst ( |
메소드 | 설명 | |
---|---|---|
setValues ( |
Sets the values for an enumeration |
public __construct ( |
||
$generator | ||
$name | string | the original name |
$isStruct | boolean | defines if it's a real sruct or not |
$isRestriction | boolean | defines if it's an enumeration or not |
public addAttribute ( string $attributeName, string $attributeType ) : |
||
$attributeName | string | the attribute name |
$attributeType | string | the attribute type |
리턴 |
protected addInheritanceAttributes ( |
||
$attributes |
public countOwnAttributes ( ) : integer | ||
리턴 | integer |
protected getAllAttributes ( boolean $includeInheritanceAttributes, boolean $requiredFirst ) : |
||
$includeInheritanceAttributes | boolean | |
$requiredFirst | boolean | |
리턴 |
public getAttribute ( string $attributeName ) : |
||
$attributeName | string | the original attribute name |
리턴 |
public getAttributes ( boolean $includeInheritanceAttributes = false, boolean $requiredFirst = false ) : |
||
$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 |
리턴 |
public getContextualPart ( ) : string | ||
리턴 | string |
public getDocSubPackages ( ) : array | ||
리턴 | array |
public getExtends ( boolean $short = false ) : string | ||
$short | boolean | |
리턴 | string |
public getIsRestriction ( ) : boolean | ||
리턴 | boolean |
public getReservedMethodsInstance ( $filename = null ) : |
||
$filename | ||
리턴 |
public getValues ( ) : |
||
리턴 |
protected putRequiredFirst ( |
||
$allAttributes | ||
리턴 |
public setAttributes ( |
||
$structAttributeContainer | ||
리턴 |
public setIsRestriction ( boolean $isRestriction = true ) : |
||
$isRestriction | boolean | |
리턴 |
public setIsStruct ( boolean $isStruct = true ) : |
||
$isStruct | boolean | |
리턴 |