Property | Type | Description | |
---|---|---|---|
$countryCodeToNonGeographicalMetadataMap | A mapping from a country calling code for a non-geographical entity to the PhoneMetadata for that country calling code. Examples of the country calling codes include 800 (International Toll Free Service) and 808 (International Shared Cost Service). | ||
$currentFilePrefix | String | The prefix of the metadata files from which region data is loaded. | |
$metaDataFilePrefix | |||
$metadataLoader | libphonenumber\MetadataLoaderInterface | The metadata loader used to inject alternative metadata sources. | |
$regionToMetadataMap | A mapping from a region code to the PhoneMetadata for that region. |
Method | Description | |
---|---|---|
__construct ( libphonenumber\MetadataLoaderInterface $metadataLoader, string | null $currentFilePrefix = null ) | ||
getMetadataForNonGeographicalRegion ( $countryCallingCode ) | ||
getMetadataForRegion ( $regionCode ) | ||
loadMetadataFromFile ( string $filePrefix, string $regionCode, integer $countryCallingCode, libphonenumber\MetadataLoaderInterface $metadataLoader ) |
public __construct ( libphonenumber\MetadataLoaderInterface $metadataLoader, string | null $currentFilePrefix = null ) | ||
$metadataLoader | libphonenumber\MetadataLoaderInterface | |
$currentFilePrefix | string | null |
public getMetadataForNonGeographicalRegion ( $countryCallingCode ) |
protected PhoneMetadata[],libphonenumber $countryCodeToNonGeographicalMetadataMap | ||
return |
protected String $currentFilePrefix | ||
return | String |
protected MetadataLoaderInterface,libphonenumber $metadataLoader | ||
return | libphonenumber\MetadataLoaderInterface |