Address.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventorySourceSelection\Model;
  8. use Magento\InventorySourceSelectionApi\Api\Data\AddressInterface;
  9. /**
  10. * @inheritdoc
  11. */
  12. class Address implements AddressInterface
  13. {
  14. /**
  15. * @var string
  16. */
  17. private $country;
  18. /**
  19. * @var string
  20. */
  21. private $postcode;
  22. /**
  23. * @var string
  24. */
  25. private $street;
  26. /**
  27. * @var string
  28. */
  29. private $region;
  30. /**
  31. * @var string
  32. */
  33. private $city;
  34. /**
  35. * ItemRequestAddress constructor.
  36. *
  37. * @param string $country
  38. * @param string $postcode
  39. * @param string $street
  40. * @param string $region
  41. * @param string $city
  42. */
  43. public function __construct(
  44. string $country,
  45. string $postcode,
  46. string $street,
  47. string $region,
  48. string $city
  49. ) {
  50. $this->country = $country;
  51. $this->postcode = $postcode;
  52. $this->street = $street;
  53. $this->region = $region;
  54. $this->city = $city;
  55. }
  56. /**
  57. * @inheritdoc
  58. */
  59. public function getCountry(): string
  60. {
  61. return $this->country;
  62. }
  63. /**
  64. * @inheritdoc
  65. */
  66. public function getPostcode(): string
  67. {
  68. return $this->postcode;
  69. }
  70. /**
  71. * @inheritdoc
  72. */
  73. public function getStreet(): string
  74. {
  75. return $this->street;
  76. }
  77. /**
  78. * @inheritdoc
  79. */
  80. public function getRegion(): string
  81. {
  82. return $this->region;
  83. }
  84. /**
  85. * @inheritdoc
  86. */
  87. public function getCity(): string
  88. {
  89. return $this->city;
  90. }
  91. }