Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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());
- $this->rowId = array_get($attributes, 'rowId', $this->rowId);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement