Model
Condition
Magento\CatalogRule\Model\Data\Condition
What it does
This class represents a data model for catalog rule conditions in Magento 2.
Developers use it to define and structure rule conditions through the API, specifying attributes, operators, values, and nested conditions for catalog price rules.
It serves as a data transfer object (DTO) for building complex rule logic that determines when catalog discounts should apply.
Public Methods
- setType()
- getType()
- setAttribute()
- getAttribute()
- setOperator()
- getOperator()
- setValue()
- getValue()
- setIsValueParsed()
- getIsValueParsed()
- setAggregator()
- getAggregator()
- setConditions()
- getConditions()
- getExtensionAttributes()
- setExtensionAttributes()