Метод | Описание | |
---|---|---|
__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 getInheritanceStruct ( ) : |
||
Результат |
public getIsRestriction ( ) : boolean | ||
Результат | boolean |
public getIsStruct ( ) : boolean | ||
Результат | boolean |
public getReservedMethodsInstance ( $filename = null ) : |
||
$filename | ||
Результат |
public getTopInheritance ( ) : |
||
Результат |
public getValues ( ) : |
||
Результат |
protected putRequiredFirst ( |
||
$allAttributes | ||
Результат |
public setAttributes ( |
||
$structAttributeContainer | ||
Результат |
public setIsRestriction ( boolean $isRestriction = true ) : |
||
$isRestriction | boolean | |
Результат |
public setIsStruct ( boolean $isStruct = true ) : |
||
$isStruct | boolean | |
Результат |