PHP Класс libphonenumber\MultiFileMetadataSourceImpl

Наследование: implements libphonenumber\MetadataSourceInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$countryCodeToNonGeographicalMetadataMap PhoneMetadata[] 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 PhoneMetadata[] A mapping from a region code to the PhoneMetadata for that region.

Открытые методы

Метод Описание
__construct ( libphonenumber\MetadataLoaderInterface $metadataLoader, string | null $currentFilePrefix = null )
getMetadataForNonGeographicalRegion ( $countryCallingCode )
getMetadataForRegion ( $regionCode )
loadMetadataFromFile ( string $filePrefix, string $regionCode, integer $countryCallingCode, libphonenumber\MetadataLoaderInterface $metadataLoader )

Описание методов

__construct() публичный Метод

public __construct ( libphonenumber\MetadataLoaderInterface $metadataLoader, string | null $currentFilePrefix = null )
$metadataLoader libphonenumber\MetadataLoaderInterface
$currentFilePrefix string | null

getMetadataForNonGeographicalRegion() публичный Метод

public getMetadataForNonGeographicalRegion ( $countryCallingCode )

getMetadataForRegion() публичный Метод

public getMetadataForRegion ( $regionCode )

loadMetadataFromFile() публичный Метод

public loadMetadataFromFile ( string $filePrefix, string $regionCode, integer $countryCallingCode, libphonenumber\MetadataLoaderInterface $metadataLoader )
$filePrefix string
$regionCode string
$countryCallingCode integer
$metadataLoader libphonenumber\MetadataLoaderInterface

Описание свойств

$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).
protected PhoneMetadata[],libphonenumber $countryCodeToNonGeographicalMetadataMap
Результат PhoneMetadata[]

$currentFilePrefix защищенное свойство

The prefix of the metadata files from which region data is loaded.
protected String $currentFilePrefix
Результат String

$metaDataFilePrefix защищенное статическое свойство

protected static $metaDataFilePrefix

$metadataLoader защищенное свойство

The metadata loader used to inject alternative metadata sources.
protected MetadataLoaderInterface,libphonenumber $metadataLoader
Результат libphonenumber\MetadataLoaderInterface

$regionToMetadataMap защищенное свойство

A mapping from a region code to the PhoneMetadata for that region.
protected PhoneMetadata[],libphonenumber $regionToMetadataMap
Результат PhoneMetadata[]