Repository
CatalogRuleRepositoryInterface
Magento\CatalogRule\Api\CatalogRuleRepositoryInterface
What it does
This interface defines the contract for managing catalog price rules in Magento 2.
Developers use this repository to programmatically create, retrieve, update, and delete catalog rules that apply automatic price discounts to products based on conditions.
It follows Magento's repository pattern and provides a standardized API for catalog rule operations.
Public Methods
- save()
- get()
- delete()
- deleteById()