Model
Customer
Magento\SalesRule\Model\ResourceModel\Rule\Customer
What it does
This resource model manages the database operations for tracking how many times a customer has used a specific sales rule (coupon or promotion).
Developers use this class to retrieve usage records from the salesrule_customer table, which helps enforce per-customer usage limits on cart price rules and prevent abuse of promotional offers.
Public Methods
- loadByCustomerRule()