Repository
CartItemRepositoryInterface
Magento\Quote\Api\CartItemRepositoryInterface
What it does
This interface defines the contract for managing shopping cart items in Magento 2.
Developers use this repository to retrieve all items from a cart, add or update items, and remove items by their ID.
It's primarily used in checkout flows, cart management operations, and when integrating with third-party systems that need to manipulate cart contents.
Public Methods
- getList()
- save()
- deleteById()