CartSessionInterface
interface CartSessionInterface (View source)
Methods
void
forget()
Forget the current cart session.
string
getSessionKey()
Return the session key for carts.
getCurrency()
Return the current currency.
getChannel()
Return the current channel.
Details
Cart|null
current()
Return the current cart.
void
forget()
Forget the current cart session.
void
associate(Cart $cart, Authenticatable $user, string $policy)
Associate a cart to a user.
void
use(Cart $cart)
Use the given cart and set to the session.
string
getSessionKey()
Return the session key for carts.
CartSessionInterface
setChannel(Channel $channel)
Set the cart session channel.
CartSessionInterface
setCurrency(Currency $currency)
Set the cart session currency.
Currency
getCurrency()
Return the current currency.
Channel
getChannel()
Return the current channel.