original_string: public function updateFromArray(array $attributes)
      {
          $this->id       = array_get($attributes, 'id', $this->id);
          $this->qty      = array_get($attributes, 'qty', $this->qty);
          $this->name     = array_get($attributes, 'name', $this->name);
          $this->price    = array_get($attributes, 'price', $this->price);
          $this->priceTax = $this->price + $this->tax;
          $this->options  = new CartItemOptions(array_get($attributes, 'options', $this->options));
  
          $this->rowId = $this->generateRowId($this->id, $this->options->all());
      }
code: public function updateFromArray(array $attributes)
      {
          $this->id       = array_get($attributes, 'id', $this->id);
          $this->qty      = array_get($attributes, 'qty', $this->qty);
          $this->name     = array_get($attributes, 'name', $this->name);
          $this->price    = array_get($attributes, 'price', $this->price);
          $this->priceTax = $this->price + $this->tax;
          $this->options  = new CartItemOptions(array_get($attributes, 'options', $this->options));
  
          $this->rowId = $this->generateRowId($this->id, $this->options->all());
      }
code_tokens: public function updateFromArray ( array $ attributes ) { $ this -> id = array_get ( $ attributes , 'id' , $ this -> id ) ; $ this -> qty = array_get ( $ attributes , 'qty' , $ this -> qty ) ; $ this -> name = array_get ( $ attributes , 'name' , $ this -> name ) ; $ this -> price = array_get ( $ attributes , 'price' , $ this -> price ) ; $ this -> priceTax = $ this -> price + $ this -> tax ; $ this -> options = new CartItemOptions ( array_get ( $ attributes , 'options' , $ this -> options ) ) ; $ this -> rowId = $ this -> generateRowId ( $ this -> id , $ this -> options -> all ( ) ) ; }
docstring: Update the cart item from an array.
  
  @param array $attributes
  @return void
docstring_tokens: Update the cart item from an array .