CartInterface
Magento\Checkout\Model\Cart\CartInterface
What it does
This interface defines the contract for shopping cart operations in Magento 2, providing methods to add products, save changes, and manage the quote object.
Developers would use this interface when implementing custom shopping cart functionality, though it's deprecated in favor of \Magento\Quote\Api\Data\CartInterface.
It serves as the foundation for cart-related operations during the checkout process.
Public Methods
- addProduct()
- saveQuote()
- setQuote()
- getQuote()