Log in
Model

RuleSearchResult

Magento\SalesRule\Model\RuleSearchResult

What it does

This class represents search results for sales rules (shopping cart price rules) in Magento 2.

Developers use this when retrieving multiple sales rules through the API or repository pattern, as it provides a standardized container that holds the collection of rule objects along with search metadata like total count and search criteria.

Public Methods

  • setItems()