Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
WeeeAdjustmentAttribute.php
Go to the documentation of this file.
1 <?php
8 
10 
18 {
24  {
25  $this->setData('attribute_code', $attributeCode);
26  }
27 
32  public function getAttributeCode()
33  {
34  return $this->getData('attribute_code');
35  }
36 
41  public function setAmount($amount)
42  {
43  $this->setData('amount', $amount);
44  }
45 
50  public function getAmount()
51  {
52  return $this->getData('amount');
53  }
54 
59  public function getTaxAmount()
60  {
61  return $this->getData('tax_amount');
62  }
63 
68  public function setTaxAmount($taxAmount)
69  {
70  $this->setData('tax_amount', $taxAmount);
71  }
72 
77  public function setAmountExclTax($amountExclTax)
78  {
79  $this->setData('amount_excl_tax', $amountExclTax);
80  }
81 
86  public function getAmountExclTax()
87  {
88  return $this->getData('amount_excl_tax');
89  }
90 
95  public function setTaxAmountInclTax($amountInclTax)
96  {
97  $this->setData('tax_amount_incl_tax', $amountInclTax);
98  }
99 
104  public function getTaxAmountInclTax()
105  {
106  return $this->getData('tax_amount_incl_tax');
107  }
108 
113  public function getExtensionAttributes()
114  {
116  if (!$extensionAttributes) {
117  return $this->extensionAttributesFactory->create(WeeeAdjustmentAttributeInterface::class);
118  }
119  return $extensionAttributes;
120  }
121 
126  public function setExtensionAttributes(
127  \Magento\Weee\Api\Data\ProductRender\WeeeAdjustmentAttributeExtensionInterface $extensionAttributes
128  ) {
129  $this->_setExtensionAttributes($extensionAttributes);
130  }
131 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$amount
Definition: order.php:14
$attributeCode
Definition: extend.phtml:12
setExtensionAttributes(\Magento\Weee\Api\Data\ProductRender\WeeeAdjustmentAttributeExtensionInterface $extensionAttributes)