Log in
Model

CartSearchResults

Magento\Quote\Model\CartSearchResults

What it does

This class serves as a data transfer object (DTO) that holds search results when querying for shopping carts in Magento 2.

Developers use this class to receive paginated cart data along with search criteria and total count information when performing cart repository searches through the API or service layer.

It implements the CartSearchResultsInterface to ensure consistent structure across cart search operations.

Public Methods

  • setItems()
  • getItems()
  • getSearchCriteria()
  • setSearchCriteria()
  • getTotalCount()
  • setTotalCount()