Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Condition.php
Go to the documentation of this file.
1 <?php
9 
11 
19 {
20  const KEY_CONDITION_TYPE = 'condition_type';
21  const KEY_CONDITIONS = 'conditions';
22  const KEY_AGGREGATOR_TYPE = 'aggregator_type';
23  const KEY_OPERATOR = 'operator';
24  const KEY_ATTRIBUTE_NAME = 'attribute_name';
25  const KEY_VALUE = 'value';
26 
32  public function getConditionType()
33  {
34  return $this->_get(self::KEY_CONDITION_TYPE);
35  }
36 
41  public function setConditionType($conditionType)
42  {
43  return $this->setData(self::KEY_CONDITION_TYPE, $conditionType);
44  }
45 
51  public function getConditions()
52  {
53  return $this->_get(self::KEY_CONDITIONS);
54  }
55 
62  public function setConditions(array $conditions = null)
63  {
64  return $this->setData(self::KEY_CONDITIONS, $conditions);
65  }
66 
72  public function getAggregatorType()
73  {
74  return $this->_get(self::KEY_AGGREGATOR_TYPE);
75  }
76 
83  public function setAggregatorType($aggregatorType)
84  {
85  return $this->setData(self::KEY_AGGREGATOR_TYPE, $aggregatorType);
86  }
87 
93  public function getOperator()
94  {
95  return $this->_get(self::KEY_OPERATOR);
96  }
97 
104  public function setOperator($operator)
105  {
106  return $this->setData(self::KEY_OPERATOR, $operator);
107  }
108 
114  public function getAttributeName()
115  {
116  return $this->_get(self::KEY_ATTRIBUTE_NAME);
117  }
118 
125  public function setAttributeName($attributeName)
126  {
127  return $this->setData(self::KEY_ATTRIBUTE_NAME, $attributeName);
128  }
129 
135  public function getValue()
136  {
137  return $this->_get(self::KEY_VALUE);
138  }
139 
146  public function setValue($value)
147  {
148  return $this->setData(self::KEY_VALUE, $value);
149  }
150 
156  public function getExtensionAttributes()
157  {
158  return $this->_getExtensionAttributes();
159  }
160 
167  public function setExtensionAttributes(
168  \Magento\SalesRule\Api\Data\ConditionExtensionInterface $extensionAttributes
169  ) {
170  return $this->_setExtensionAttributes($extensionAttributes);
171  }
172 }
setConditions(array $conditions=null)
Definition: Condition.php:62
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
setExtensionAttributes(\Magento\SalesRule\Api\Data\ConditionExtensionInterface $extensionAttributes)
Definition: Condition.php:167
$value
Definition: gender.phtml:16
$extensionAttributes
Definition: payment.php:22