Log in
Interface

ConditionInterface

Magento\CatalogRule\Api\Data\ConditionInterface

What it does

This interface defines the data structure for catalog rule conditions in Magento 2.

Developers use it when creating or manipulating catalog price rules through the API, allowing them to define complex conditional logic (like attribute comparisons, operators, and nested conditions) that determines when a catalog rule should be applied to products.

Public Methods

  • setType()
  • getType()
  • setAttribute()
  • getAttribute()
  • setOperator()
  • getOperator()
  • setValue()
  • getValue()
  • setIsValueParsed()
  • getIsValueParsed()
  • setAggregator()
  • getAggregator()
  • setConditions()
  • getConditions()
  • getExtensionAttributes()
  • setExtensionAttributes()