Model
GetCoupons
Magento\SalesRule\Model\GetCoupons
What it does
This class efficiently retrieves multiple coupon objects by their codes in a single operation, with built-in caching to avoid redundant database queries.
Developers use this when they need to load several coupons at once during cart processing or order validation.
It implements ResetAfterRequestInterface to clear its cache between requests in long-running processes.
Public Methods
- execute()
- _resetState()