123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Tax\Model\Calculation;
- use Magento\Tax\Api\Data\GrandTotalDetailsInterface;
- use Magento\Framework\Api\AbstractSimpleObject;
- /**
- * Grand Total Tax Details Model
- */
- class GrandTotalDetails extends AbstractSimpleObject implements GrandTotalDetailsInterface
- {
- /**#@+
- * Constants defined for keys of array, makes typos less likely
- */
- const AMOUNT = 'amount';
- const RATES = 'rates';
- const GROUP_ID = 'group_id';
- /**#@-*/
- /**
- * {@inheritdoc}
- */
- public function getGroupId()
- {
- return $this->_get(self::GROUP_ID);
- }
- /**
- * {@inheritdoc}
- */
- public function setGroupId($id)
- {
- return $this->setData(self::GROUP_ID, $id);
- }
- /**
- * {@inheritdoc}
- */
- public function getAmount()
- {
- return $this->_get(self::AMOUNT);
- }
- /**
- * {@inheritdoc}
- */
- public function setAmount($amount)
- {
- return $this->setData(self::AMOUNT, $amount);
- }
- /**
- * {@inheritdoc}
- */
- public function getRates()
- {
- return $this->_get(self::RATES);
- }
- /**
- * {@inheritdoc}
- */
- public function setRates($rates)
- {
- return $this->setData(self::RATES, $rates);
- }
- }
|