Factory
TotalFactory
Magento\Quote\Model\Quote\Address\TotalFactory
What it does
This factory class creates instances of quote address total objects in Magento 2.
Developers use this when they need to instantiate total calculation objects for quote addresses, such as subtotal, shipping, tax, or discount totals.
It provides a flexible way to create different types of total collectors by specifying the class name as a parameter.
Public Methods
- create()