FakeRegionInterface.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. declare(strict_types=1);
  8. namespace Magento\TestModuleExtensionAttributes\Api\Data;
  9. use Magento\Framework\Api\ExtensibleDataInterface;
  10. /**
  11. * Customer address region interface.
  12. */
  13. interface FakeRegionInterface extends ExtensibleDataInterface
  14. {
  15. /**#@+
  16. * Constants for keys of data array
  17. */
  18. const REGION_CODE = 'region_code';
  19. const REGION = 'region';
  20. const REGION_ID = 'region_id';
  21. /**#@-*/
  22. /**
  23. * Get region code
  24. *
  25. * @return string
  26. */
  27. public function getRegionCode();
  28. /**
  29. * Get region
  30. *
  31. * @return string
  32. */
  33. public function getRegion();
  34. /**
  35. * Get region id
  36. *
  37. * @return int
  38. */
  39. public function getRegionId();
  40. /**
  41. * Retrieve existing extension attributes object or create a new one.
  42. *
  43. * @return \Magento\TestModuleExtensionAttributes\Api\Data\FakeRegionExtensionInterface|null
  44. */
  45. public function getExtensionAttributes();
  46. /**
  47. * Set an extension attributes object.
  48. *
  49. * @param \Magento\TestModuleExtensionAttributes\Api\Data\FakeRegionExtensionInterface $extensionAttributes
  50. * @return $this
  51. */
  52. public function setExtensionAttributes(
  53. \Magento\TestModuleExtensionAttributes\Api\Data\FakeRegionExtensionInterface $extensionAttributes
  54. );
  55. }