WishlistItem
Magento\Wishlist\Model\Wishlist\Data\WishlistItem
What it does
This is a Data Transfer Object (DTO) that represents a single wishlist item in Magento 2.
Developers use this class to pass wishlist item data between different layers of the application, particularly when working with GraphQL or API endpoints for wishlist functionality.
It encapsulates all essential wishlist item information including product SKU, quantity, options, and description in a type-safe, immutable structure.
Public Methods
- getId()
- getDescription()
- getSku()
- getQuantity()
- getParentSku()
- getSelectedOptions()
- getEnteredOptions()