QuantityCollector
Magento\Quote\Model\Quote\QuantityCollector
What it does
This class collects and calculates quantity-related statistics for all items in a shopping cart quote.
Developers use this to maintain accurate counts of total items, item quantities, and virtual item quantities in the quote, which is essential for cart display, shipping calculations, and checkout processes.
It's typically called during quote totals collection or when cart items are modified.
Public Methods
- collectItemsQtys()