Model
CartSearchResults
Magento\Quote\Model\CartSearchResults
What it does
This class is a data container that holds the results of shopping cart search operations in Magento 2.
Developers use it when implementing cart repository search methods to return a collection of cart items along with search criteria and total count information.
It follows Magento's standard search results pattern for API responses.
Public Methods
- setItems()
- getItems()
- getSearchCriteria()
- setSearchCriteria()
- getTotalCount()
- setTotalCount()