BuyRequestBuilder
Magento\Quote\Model\Cart\BuyRequest\BuyRequestBuilder
What it does
This class constructs buy request objects that contain all necessary product information when adding items to a shopping cart.
Developers use this to build properly formatted DataObjects containing quantity and product-specific options (like size, color, custom options) before adding products to quotes.
It leverages a provider pattern to gather product data from multiple sources and merge them into a single request object.
Public Methods
- build()