original_string: public function updateFromBuyable(Buyable $item)
      {
          $this->id       = $item->getBuyableIdentifier($this->options);
          $this->name     = $item->getBuyableDescription($this->options);
          $this->price    = $item->getBuyablePrice($this->options);
          $this->priceTax = $this->price + $this->tax;
      }
code: public function updateFromBuyable(Buyable $item)
      {
          $this->id       = $item->getBuyableIdentifier($this->options);
          $this->name     = $item->getBuyableDescription($this->options);
          $this->price    = $item->getBuyablePrice($this->options);
          $this->priceTax = $this->price + $this->tax;
      }
code_tokens: public function updateFromBuyable ( Buyable $ item ) { $ this -> id = $ item -> getBuyableIdentifier ( $ this -> options ) ; $ this -> name = $ item -> getBuyableDescription ( $ this -> options ) ; $ this -> price = $ item -> getBuyablePrice ( $ this -> options ) ; $ this -> priceTax = $ this -> price + $ this -> tax ; }
docstring: Update the cart item from a Buyable.
  
  @param \Gloudemans\Shoppingcart\Contracts\Buyable $item
  @return void
docstring_tokens: Update the cart item from a Buyable .