123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Weee\Model\ProductRender;
- use Magento\Weee\Api\Data\ProductRender\WeeeAdjustmentAttributeInterface;
- /**
- * Price interface.
- * @api
- * @since 100.2.0
- */
- class WeeeAdjustmentAttribute extends \Magento\Framework\Model\AbstractExtensibleModel implements
- WeeeAdjustmentAttributeInterface
- {
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function setAttributeCode($attributeCode)
- {
- $this->setData('attribute_code', $attributeCode);
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function getAttributeCode()
- {
- return $this->getData('attribute_code');
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function setAmount($amount)
- {
- $this->setData('amount', $amount);
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function getAmount()
- {
- return $this->getData('amount');
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function getTaxAmount()
- {
- return $this->getData('tax_amount');
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function setTaxAmount($taxAmount)
- {
- $this->setData('tax_amount', $taxAmount);
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function setAmountExclTax($amountExclTax)
- {
- $this->setData('amount_excl_tax', $amountExclTax);
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function getAmountExclTax()
- {
- return $this->getData('amount_excl_tax');
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function setTaxAmountInclTax($amountInclTax)
- {
- $this->setData('tax_amount_incl_tax', $amountInclTax);
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function getTaxAmountInclTax()
- {
- return $this->getData('tax_amount_incl_tax');
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function getExtensionAttributes()
- {
- $extensionAttributes = $this->_getExtensionAttributes();
- if (!$extensionAttributes) {
- return $this->extensionAttributesFactory->create(WeeeAdjustmentAttributeInterface::class);
- }
- return $extensionAttributes;
- }
- /**
- * @inheritdoc
- * @since 100.2.0
- */
- public function setExtensionAttributes(
- \Magento\Weee\Api\Data\ProductRender\WeeeAdjustmentAttributeExtensionInterface $extensionAttributes
- ) {
- $this->_setExtensionAttributes($extensionAttributes);
- }
- }
|