ConditionInterface
Magento\SalesRule\Api\Data\ConditionInterface
What it does
This interface defines the structure for sales rule conditions in Magento 2's promotion system.
Developers use it to create, read, and manipulate complex rule conditions (like 'if cart subtotal is greater than $100') that determine when cart price rules or catalog rules apply.
It supports nested conditions through an aggregator type ('all' or 'any') allowing for sophisticated promotional logic.
Public Methods
- getConditionType()
- setConditionType()
- getConditions()
- setConditions()
- getAggregatorType()
- setAggregatorType()
- getOperator()
- setOperator()
- getAttributeName()
- setAttributeName()
- getValue()
- setValue()
- getExtensionAttributes()
- setExtensionAttributes()