Model
CartTotalRepository
Magento\Quote\Model\Cart\CartTotalRepository
What it does
This repository class retrieves and assembles complete cart totals information for a shopping cart.
Developers use this when they need to display cart totals, including subtotals, tax, shipping, discounts, and all line items with their calculated values.
It's commonly used in checkout flows, cart pages, and API responses where comprehensive cart total data is required.
Public Methods
- get()