src/Model/Struct.php
public function getAttributes($includeInheritanceAttributes = false, $requiredFirst = false)
    {
        if ($includeInheritanceAttributes === false && $requiredFirst === false) {
            $attributes = $this->attributes;
        } else {
            $attributes = $this->getAllAttributes($includeInheritanceAttributes, $requiredFirst);
        }
        return $attributes;
    }
public function getAttributes($includeInheritanceAttributes = false, $requiredFirst = false)
    {
        if ($includeInheritanceAttributes === false && $requiredFirst === false) {
            $attributes = $this->attributes;
        } else {
            $attributes = $this->getAllAttributes($includeInheritanceAttributes, $requiredFirst);
        }
        return $attributes;
    }
public function getAttributes ( $ includeInheritanceAttributes = false , $ requiredFirst = false ) { if ( $ includeInheritanceAttributes === false && $ requiredFirst === false ) { $ attributes = $ this -> attributes ; } else { $ attributes = $ this -> getAllAttributes ( $ includeInheritanceAttributes , $ requiredFirst ) ; } return $ attributes ; }
Returns the attributes of the struct and potentially from the parent class
@uses AbstractModel::getInheritance()
@uses Struct::isStruct()
@uses Struct::getAttributes()
@param bool $includeInheritanceAttributes 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.
@param bool $requiredFirst places the required attributes first, then the not required in order to have the _construct method with the required attribute at first
@return StructAttributeContainer
Returns the attributes of the struct and potentially from the parent class