PHP Class CommerceGuys\Addressing\Country\CountryRepository

Choosing the source at runtime allows integrations (such as the symfony bundle) to stay agnostic about the intl library they need.
Inheritance: implements CommerceGuys\Addressing\Country\CountryRepositoryInterface
ファイルを表示 Open project: commerceguys/addressing Class Usage Examples

Protected Properties

Property Type Description
$countryRepository CommerceGuys\Intl\Country\CountryRepository The country repository, if commerceguys/intl is used.
$regionBundle Symfony\Component\Intl\ResourceBundle\RegionBundle The region bundle, if symfony/intl is used.

Public Methods

Method Description
__construct ( ) Creates a CountryRepository instance.
getList ( $locale = null )

Method Details

__construct() public method

Creates a CountryRepository instance.
public __construct ( )

getList() public method

public getList ( $locale = null )

Property Details

$countryRepository protected_oe property

The country repository, if commerceguys/intl is used.
protected CountryRepository,CommerceGuys\Intl\Country $countryRepository
return CommerceGuys\Intl\Country\CountryRepository

$regionBundle protected_oe property

The region bundle, if symfony/intl is used.
protected RegionBundle,Symfony\Component\Intl\ResourceBundle $regionBundle
return Symfony\Component\Intl\ResourceBundle\RegionBundle