PHP 클래스 libphonenumber\MultiFileMetadataSourceImpl

상속: implements libphonenumber\MetadataSourceInterface
파일 보기 프로젝트 열기: giggsey/libphonenumber-for-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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[]