Shipping.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Quote\Model;
  7. use Magento\Quote\Api\Data\ShippingInterface;
  8. /**
  9. * Class Shipping
  10. */
  11. class Shipping extends \Magento\Framework\Model\AbstractExtensibleModel implements ShippingInterface
  12. {
  13. const ADDRESS = 'address';
  14. const METHOD = 'method';
  15. /**
  16. * @inheritDoc
  17. */
  18. public function getAddress()
  19. {
  20. return $this->getData(self::ADDRESS);
  21. }
  22. /**
  23. * @inheritDoc
  24. */
  25. public function setAddress(\Magento\Quote\Api\Data\AddressInterface $value)
  26. {
  27. $this->setData(self::ADDRESS, $value);
  28. return $this;
  29. }
  30. /**
  31. * @inheritDoc
  32. */
  33. public function getMethod()
  34. {
  35. return $this->getData(self::METHOD);
  36. }
  37. /**
  38. * @inheritDoc
  39. */
  40. public function setMethod($value)
  41. {
  42. $this->setData(self::METHOD, $value);
  43. return $this;
  44. }
  45. /**
  46. * @inheritDoc
  47. */
  48. public function getExtensionAttributes()
  49. {
  50. return $this->_getExtensionAttributes();
  51. }
  52. /**
  53. * @inheritDoc
  54. */
  55. public function setExtensionAttributes(\Magento\Quote\Api\Data\ShippingExtensionInterface $extensionAttributes)
  56. {
  57. return $this->_setExtensionAttributes($extensionAttributes);
  58. }
  59. }