Interface
CartInterface
Magento\Checkout\Model\Cart\CartInterface
What it does
This interface defines the contract for managing a shopping cart in Magento 2.
Developers would implement this interface to add products to cart, save cart changes, and access the underlying quote object.
Note that this interface is deprecated and developers should use \Magento\Quote\Api\Data\CartInterface instead for new implementations.
Public Methods
- addProduct()
- saveQuote()
- setQuote()
- getQuote()