CountryInformationAcquirerInterface.php 766 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Directory\Api;
  7. /**
  8. * Country information acquirer interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface CountryInformationAcquirerInterface
  14. {
  15. /**
  16. * Get all countries and regions information for the store.
  17. *
  18. * @return \Magento\Directory\Api\Data\CountryInformationInterface[]
  19. */
  20. public function getCountriesInfo();
  21. /**
  22. * Get country and region information for the store.
  23. *
  24. * @param string $countryId
  25. * @throws \Magento\Framework\Exception\NoSuchEntityException
  26. * @return \Magento\Directory\Api\Data\CountryInformationInterface
  27. */
  28. public function getCountryInfo($countryId);
  29. }