TotalsInformation.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Checkout\Model;
  7. use Magento\Framework\Model\AbstractExtensibleModel;
  8. use Magento\Checkout\Api\Data\TotalsInformationInterface;
  9. /**
  10. * @codeCoverageIgnoreStart
  11. */
  12. class TotalsInformation extends AbstractExtensibleModel implements TotalsInformationInterface
  13. {
  14. /**
  15. * {@inheritdoc}
  16. */
  17. public function getAddress()
  18. {
  19. return $this->getData(self::ADDRESS);
  20. }
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function setAddress(\Magento\Quote\Api\Data\AddressInterface $address)
  25. {
  26. return $this->setData(self::ADDRESS, $address);
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function getShippingMethodCode()
  32. {
  33. return $this->getData(self::SHIPPING_METHOD_CODE);
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function setShippingMethodCode($code)
  39. {
  40. return $this->setData(self::SHIPPING_METHOD_CODE, $code);
  41. }
  42. /**
  43. * {@inheritdoc}
  44. */
  45. public function getShippingCarrierCode()
  46. {
  47. return $this->getData(self::SHIPPING_CARRIER_CODE);
  48. }
  49. /**
  50. * {@inheritdoc}
  51. */
  52. public function setShippingCarrierCode($code)
  53. {
  54. return $this->setData(self::SHIPPING_CARRIER_CODE, $code);
  55. }
  56. /**
  57. * {@inheritdoc}
  58. */
  59. public function getExtensionAttributes()
  60. {
  61. return $this->_getExtensionAttributes();
  62. }
  63. /**
  64. * {@inheritdoc}
  65. */
  66. public function setExtensionAttributes(
  67. \Magento\Checkout\Api\Data\TotalsInformationExtensionInterface $extensionAttributes
  68. ) {
  69. return $this->_setExtensionAttributes($extensionAttributes);
  70. }
  71. }