Model
AddProductsToCartOutput
Magento\Quote\Model\Cart\Data\AddProductsToCartOutput
What it does
This class serves as a Data Transfer Object (DTO) that encapsulates the result of adding products to a shopping cart.
Developers use this class to receive both the updated cart object and any errors that occurred during the add-to-cart operation, making it easy to handle success and failure scenarios in a single response.
Public Methods
- getCart()
- getErrors()