Factory
TotalFactory
Magento\Quote\Model\Quote\Address\TotalFactory
What it does
This factory class creates instances of quote address total objects, which are used to calculate various totals (subtotal, tax, shipping, discounts) during the checkout process.
Developers use this factory when they need to instantiate custom or existing total collector classes dynamically, particularly when extending Magento's checkout total calculation functionality.
Public Methods
- create()