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 in a shopping cart quote item.

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

It provides a simple, type-safe way to handle option IDs throughout the quote management system.

Public Methods

  • getId()