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
7 
9 
15 {
19  public function setType($type)
20  {
21  return $this->setData(self::TYPE, $type);
22  }
23 
27  public function getType()
28  {
29  return $this->getData(self::TYPE);
30  }
31 
35  public function setAttribute($attribute)
36  {
37  return $this->setData(self::ATTRIBUTE, $attribute);
38  }
39 
43  public function getAttribute()
44  {
45  return $this->getData(self::ATTRIBUTE);
46  }
47 
51  public function setOperator($operator)
52  {
53  return $this->setData(self::OPERATOR, $operator);
54  }
55 
59  public function getOperator()
60  {
61  return $this->getData(self::OPERATOR);
62  }
63 
67  public function setValue($value)
68  {
69  return $this->setData(self::VALUE, $value);
70  }
71 
75  public function getValue()
76  {
77  return $this->getData(self::VALUE);
78  }
79 
83  public function setIsValueParsed($isValueParsed)
84  {
85  return $this->setData(self::IS_VALUE_PARSED, $isValueParsed);
86  }
87 
91  public function getIsValueParsed()
92  {
93  return $this->getData(self::IS_VALUE_PARSED);
94  }
95 
99  public function setAggregator($aggregator)
100  {
101  return $this->setData(self::AGGREGATOR, $aggregator);
102  }
103 
107  public function getAggregator()
108  {
109  return $this->getData(self::AGGREGATOR);
110  }
111 
115  public function setConditions($conditions)
116  {
117  return $this->setData(self::CONDITIONS, $conditions);
118  }
119 
123  public function getConditions()
124  {
125  return $this->getData(self::CONDITIONS);
126  }
127 
131  public function getExtensionAttributes()
132  {
133  return $this->_getExtensionAttributes();
134  }
135 
139  public function setExtensionAttributes(
140  \Magento\CatalogRule\Api\Data\ConditionExtensionInterface $extensionAttributes
141  ) {
142  return $this->_setExtensionAttributes($extensionAttributes);
143  }
144 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$type
Definition: item.phtml:13
$value
Definition: gender.phtml:16
setExtensionAttributes(\Magento\CatalogRule\Api\Data\ConditionExtensionInterface $extensionAttributes)
Definition: Condition.php:139