RegionInformationInterface.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Directory\Api\Data;
  8. /**
  9. * Region Information interface.
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface RegionInformationInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  15. {
  16. /**
  17. * Get region id
  18. *
  19. * @return string
  20. */
  21. public function getId();
  22. /**
  23. * Set region id
  24. *
  25. * @param string $regionId
  26. * @return $this
  27. */
  28. public function setId($regionId);
  29. /**
  30. * Get region code
  31. *
  32. * @return string
  33. */
  34. public function getCode();
  35. /**
  36. * Set region code
  37. *
  38. * @param string $regionCode
  39. * @return $this
  40. */
  41. public function setCode($regionCode);
  42. /**
  43. * Get region name
  44. *
  45. * @return string
  46. */
  47. public function getName();
  48. /**
  49. * Set region name
  50. *
  51. * @param string $region
  52. * @return $this
  53. */
  54. public function setName($regionName);
  55. /**
  56. * Retrieve existing extension attributes object or create a new one.
  57. *
  58. * @return \Magento\Directory\Api\Data\RegionInformationExtensionInterface|null
  59. */
  60. public function getExtensionAttributes();
  61. /**
  62. * Set an extension attributes object.
  63. *
  64. * @param \Magento\Directory\Api\Data\RegionInformationExtensionInterface $extensionAttributes
  65. * @return $this
  66. */
  67. public function setExtensionAttributes(
  68. \Magento\Directory\Api\Data\RegionInformationExtensionInterface $extensionAttributes
  69. );
  70. }