Log in
Model

GroupSearchResults

Magento\Customer\Model\GroupSearchResults

What it does

This class is a Data Transfer Object (DTO) that holds search results when querying for customer groups in Magento 2.

Developers use this class when implementing customer group repository search operations to return a collection of customer groups along with pagination and filtering metadata.

It extends the base SearchResults class and implements the GroupSearchResultsInterface to ensure type-safe returns from repository search methods.