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;
    }
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;
    }
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 ; }
Update the cart item from a Buyable.

@param \Gloudemans\Shoppingcart\Contracts\Buyable $item
@return void
Update the cart item from a Buyable .