TotalSegment.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Model\Cart;
  7. use Magento\Quote\Api\Data\TotalSegmentInterface;
  8. use Magento\Framework\Model\AbstractExtensibleModel;
  9. /**
  10. * Extensible Cart Totals
  11. *
  12. * @codeCoverageIgnore
  13. */
  14. class TotalSegment extends AbstractExtensibleModel implements TotalSegmentInterface
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function getCode()
  20. {
  21. return $this->getData(self::CODE);
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function setCode($code)
  27. {
  28. return $this->setData(self::CODE, $code);
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function getValue()
  34. {
  35. return $this->getData(self::VALUE);
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function setValue($value)
  41. {
  42. return $this->setData(self::VALUE, $value);
  43. }
  44. /**
  45. * {@inheritdoc}
  46. */
  47. public function getTitle()
  48. {
  49. return $this->getData(self::TITLE);
  50. }
  51. /**
  52. * {@inheritdoc}
  53. */
  54. public function setTitle($title = null)
  55. {
  56. return $this->setData(self::TITLE, $title);
  57. }
  58. /**
  59. * {@inheritdoc}
  60. */
  61. public function getArea()
  62. {
  63. return $this->getData(self::AREA);
  64. }
  65. /**
  66. * {@inheritdoc}
  67. */
  68. public function setArea($area = null)
  69. {
  70. return $this->setData(self::AREA, $area);
  71. }
  72. /**
  73. * {@inheritdoc}
  74. */
  75. public function getExtensionAttributes()
  76. {
  77. return $this->_getExtensionAttributes();
  78. }
  79. /**
  80. * {@inheritdoc}
  81. */
  82. public function setExtensionAttributes(
  83. \Magento\Quote\Api\Data\TotalSegmentExtensionInterface $extensionAttributes
  84. ) {
  85. return $this->_setExtensionAttributes($extensionAttributes);
  86. }
  87. }