Log in
Model

CustomerSearchResults

Magento\Customer\Model\CustomerSearchResults

What it does

This class is a Data Transfer Object (DTO) that holds the results of customer search operations in Magento 2.

Developers use this class when implementing customer repository search methods to return a standardized collection of customers along with search metadata like total count and search criteria.

It implements the CustomerSearchResultsInterface to ensure consistent data structure for customer search results across the application.