Processor
Magento\Quote\Model\Quote\Item\Processor
What it does
The Processor class is responsible for initializing and preparing quote items when products are added to the shopping cart.
Developers would use this class when they need to set up new quote items with proper store context, handle quantity updates, or apply custom pricing during the add-to-cart process.
It ensures quote items are correctly configured with store IDs, quantities, and pricing before being added to the quote.
Public Methods
- init()
- prepare()
- merge()