protected function setProperties($attributes)
    {
        foreach ($attributes as $key => $value) {
            $this->{camel_case($key)} = $value;
        }
    }
protected function setProperties($attributes)
    {
        foreach ($attributes as $key => $value) {
            $this->{camel_case($key)} = $value;
        }
    }
protected function setProperties ( $ attributes ) { foreach ( $ attributes as $ key => $ value ) { $ this -> { camel_case ( $ key ) } = $ value ; } }
Sets the object properties from the provided data.

@param array Cart attributes
@return void
Sets the object properties from the provided data .