
| Current Path : /var/www/html/store/vendor/commerceguys/addressing/src/Country/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/vendor/commerceguys/addressing/src/Country/CountryRepositoryInterface.php |
<?php
namespace CommerceGuys\Addressing\Country;
/**
* Country repository interface.
*/
interface CountryRepositoryInterface
{
/**
* Gets a country matching the provided country code.
*
* @param string $countryCode The country code.
* @param string $locale The locale (i.e. fr-FR).
*
* @return Country
*/
public function get($countryCode, $locale = null);
/**
* Gets all countries.
*
* @param string $locale The locale (i.e. fr-FR).
*
* @return Country[] An array of countries, keyed by country code.
*/
public function getAll($locale = null);
/**
* Gets a list of countries.
*
* @param string $locale The locale (i.e. fr-FR).
*
* @return string[] An array of country names, keyed by country code.
*/
public function getList($locale = null);
}