/** * Update the cart * * @param Subbly\Shoppingcart\CartCollection $cart The new cart content * @return void */ protected function updateCart($cart) { return $this->session->put($this->getInstance(), $cart); }
/** * This method saves the data * * @param array $data */ public function saveData($data) { $this->data = array_merge($this->data, $data); $this->session->put('checkout', $this->data); }