Log in
Interface

CartSearchResultsInterface

Magento\Quote\Api\Data\CartSearchResultsInterface

What it does

This interface defines the contract for search results when querying shopping carts (quotes) in Magento 2.

Developers use this when implementing repository methods that return multiple carts based on search criteria, providing a standardized way to access the cart collection, pagination details, and search parameters.

It's commonly used in custom modules that need to retrieve and display lists of carts with filtering and sorting capabilities.

Public Methods

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