Interface
ShippingMethodManagementInterface
Magento\Quote\Model\ShippingMethodManagementInterface
What it does
This interface defines methods for managing shipping methods on shopping carts.
Developers use it to set or retrieve the selected shipping carrier and method for a quote, typically during checkout when customers choose their preferred shipping option.
It handles validation to ensure shipping methods can only be applied to carts with physical products and valid addresses.
Public Methods
- set()
- get()