Log in
Model

SelectedOption

Magento\Quote\Model\Cart\Data\SelectedOption

What it does

This is a Data Transfer Object (DTO) that represents a selected product option for items in a shopping cart quote.

Developers use this class to encapsulate and pass information about which specific product options (like size, color, or custom options) a customer has selected when adding items to their cart.

It provides a simple, immutable way to store and retrieve the selected option ID.

Public Methods

  • getId()