QuoteCollectionPoint.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\CollectionPoint;
  6. use Magento\Framework\DataObject;
  7. use Temando\Shipping\Api\Data\CollectionPoint\QuoteCollectionPointInterface;
  8. /**
  9. * Temando Quote Collection Point Entity
  10. *
  11. * This model contains a subset of data that is used in the shipping module.
  12. * It does not contain all data as available in its platform representation.
  13. *
  14. * @deprecated since 1.4.0
  15. * @see \Temando\Shipping\Model\Delivery\QuoteCollectionPoint
  16. *
  17. * @package Temando\Shipping\Model
  18. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  19. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  20. * @link https://www.temando.com/
  21. */
  22. class QuoteCollectionPoint extends DataObject implements QuoteCollectionPointInterface
  23. {
  24. /**
  25. * @return int
  26. */
  27. public function getEntityId()
  28. {
  29. return $this->getData(QuoteCollectionPointInterface::ENTITY_ID);
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getCollectionPointId()
  35. {
  36. return $this->getData(QuoteCollectionPointInterface::COLLECTION_POINT_ID);
  37. }
  38. /**
  39. * @return int
  40. */
  41. public function getRecipientAddressId()
  42. {
  43. return $this->getData(QuoteCollectionPointInterface::RECIPIENT_ADDRESS_ID);
  44. }
  45. /**
  46. * @return string
  47. */
  48. public function getName()
  49. {
  50. return $this->getData(QuoteCollectionPointInterface::NAME);
  51. }
  52. /**
  53. * @return string
  54. */
  55. public function getCountry()
  56. {
  57. return $this->getData(QuoteCollectionPointInterface::COUNTRY);
  58. }
  59. /**
  60. * @return string
  61. */
  62. public function getRegion()
  63. {
  64. return $this->getData(QuoteCollectionPointInterface::REGION);
  65. }
  66. /**
  67. * @return string
  68. */
  69. public function getPostcode()
  70. {
  71. return $this->getData(QuoteCollectionPointInterface::POSTCODE);
  72. }
  73. /**
  74. * @return string
  75. */
  76. public function getCity()
  77. {
  78. return $this->getData(QuoteCollectionPointInterface::CITY);
  79. }
  80. /**
  81. * @return string[]
  82. */
  83. public function getStreet()
  84. {
  85. return $this->getData(QuoteCollectionPointInterface::STREET);
  86. }
  87. /**
  88. * @return string[][]
  89. */
  90. public function getOpeningHours()
  91. {
  92. return $this->getData(QuoteCollectionPointInterface::OPENING_HOURS);
  93. }
  94. /**
  95. * @return string[][]
  96. */
  97. public function getShippingExperiences()
  98. {
  99. return $this->getData(QuoteCollectionPointInterface::SHIPPING_EXPERIENCES);
  100. }
  101. /**
  102. * @return bool
  103. */
  104. public function isSelected()
  105. {
  106. return $this->getData(QuoteCollectionPointInterface::SELECTED);
  107. }
  108. }