public function setAttribute($attribute, $value)
    {
        array_set($this->cart->attributes, $attribute, $value);

        $this->update();
    }
public function setAttribute($attribute, $value)
    {
        array_set($this->cart->attributes, $attribute, $value);

        $this->update();
    }
public function setAttribute ( $ attribute , $ value ) { array_set ( $ this -> cart -> attributes , $ attribute , $ value ) ; $ this -> update ( ) ; }
Adds an Attribute to the cart.

@param $attribute
@param $value
Adds an Attribute to the cart .