RegionInterface.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Customer\Api\Data;
  8. use Magento\Framework\Api\ExtensibleDataInterface;
  9. /**
  10. * Customer address region interface.
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface RegionInterface extends ExtensibleDataInterface
  15. {
  16. /**#@+
  17. * Constants for keys of data array. Identical to the getters in snake case
  18. */
  19. const REGION_CODE = 'region_code';
  20. const REGION = 'region';
  21. const REGION_ID = 'region_id';
  22. /**#@-*/
  23. /**
  24. * Get region code
  25. *
  26. * @return string
  27. */
  28. public function getRegionCode();
  29. /**
  30. * Set region code
  31. *
  32. * @param string $regionCode
  33. * @return $this
  34. */
  35. public function setRegionCode($regionCode);
  36. /**
  37. * Get region
  38. *
  39. * @return string
  40. */
  41. public function getRegion();
  42. /**
  43. * Set region
  44. *
  45. * @param string $region
  46. * @return $this
  47. */
  48. public function setRegion($region);
  49. /**
  50. * Get region id
  51. *
  52. * @return int
  53. */
  54. public function getRegionId();
  55. /**
  56. * Set region id
  57. *
  58. * @param int $regionId
  59. * @return $this
  60. */
  61. public function setRegionId($regionId);
  62. /**
  63. * Retrieve existing extension attributes object or create a new one.
  64. *
  65. * @return \Magento\Customer\Api\Data\RegionExtensionInterface|null
  66. */
  67. public function getExtensionAttributes();
  68. /**
  69. * Set an extension attributes object.
  70. *
  71. * @param \Magento\Customer\Api\Data\RegionExtensionInterface $extensionAttributes
  72. * @return $this
  73. */
  74. public function setExtensionAttributes(\Magento\Customer\Api\Data\RegionExtensionInterface $extensionAttributes);
  75. }