OrderRegistrar
Magento\Sales\Model\Order\Shipment\OrderRegistrar
What it does
This class handles the registration of shipment items with their parent order during the shipment creation process.
It calculates the total quantity of items being shipped by iterating through shipment items, registering each one, and updating the shipment's total quantity.
Developers use this class when creating shipments to ensure proper tracking of shipped quantities against order items.
Public Methods
- register()