GrandTotalRates.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Tax\Model\Calculation;
  7. use Magento\Tax\Api\Data\GrandTotalRatesInterface;
  8. use Magento\Framework\Api\AbstractSimpleObject;
  9. /**
  10. * Grand Total Tax Details Model
  11. */
  12. class GrandTotalRates extends AbstractSimpleObject implements GrandTotalRatesInterface
  13. {
  14. /**#@+
  15. * Constants defined for keys of array, makes typos less likely
  16. */
  17. const PERCENT = 'percent';
  18. const TITLE = 'title';
  19. /**#@-*/
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function getTitle()
  24. {
  25. return $this->_get(self::TITLE);
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function setTitle($title)
  31. {
  32. return $this->setData(self::TITLE, $title);
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function getPercent()
  38. {
  39. return $this->_get(self::PERCENT);
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function setPercent($percent)
  45. {
  46. return $this->setData(self::PERCENT, $percent);
  47. }
  48. }