public function getAttributes()
    {
        // prevent order of fields from changing
        $sortedAttribs = [];
        foreach ($this->sortedFields as $ix => $attribute) {
            $sortedAttribs[$attribute] = $this->attributes[$attribute];
        }

        return $sortedAttribs;
    }
public function getAttributes()
    {
        // prevent order of fields from changing
        $sortedAttribs = [];
        foreach ($this->sortedFields as $ix => $attribute) {
            $sortedAttribs[$attribute] = $this->attributes[$attribute];
        }

        return $sortedAttribs;
    }
public function getAttributes ( ) { // prevent order of fields from changing $ sortedAttribs = [ ] ; foreach ( $ this -> sortedFields as $ ix => $ attribute ) { $ sortedAttribs [ $ attribute ] = $ this -> attributes [ $ attribute ] ; } return $ sortedAttribs ; }
Getter for the `attributes` property.

The `attributes` property holds an array with key values representing
the Data of this Model instance.

@return array
Getter for the attributes property .