PHP Класс libphonenumber\prefixmapper\PrefixTimeZonesMap

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$phonePrefixMap

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

Метод Описание
__construct ( $map )
lookupCountryLevelTimeZonesForNumber ( PhoneNumber $number ) : array Returns the list of time zones {@code number}'s calling country code corresponds to.
lookupTimeZonesForNumber ( PhoneNumber $number ) : array As per {@link #lookupTimeZonesForNumber(long)}, but receives the number as a PhoneNumber instead of a long.

Защищенные методы

Метод Описание
lookupTimeZonesForNumberKey ( $key ) : array Returns the list of time zones {@code key} corresponds to.
tokenizeRawOutputString ( $timezonesString ) : array Split {@code timezonesString} into all the time zones that are part of it.

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

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

public __construct ( $map )

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

Returns the list of time zones {@code number}'s calling country code corresponds to.
public lookupCountryLevelTimeZonesForNumber ( PhoneNumber $number ) : array
$number libphonenumber\PhoneNumber PhoneNumber the phone number to look up
Результат array the list of corresponding time zones

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

As per {@link #lookupTimeZonesForNumber(long)}, but receives the number as a PhoneNumber instead of a long.
public lookupTimeZonesForNumber ( PhoneNumber $number ) : array
$number libphonenumber\PhoneNumber PhoneNumber the phone number to look up
Результат array the list of corresponding time zones

lookupTimeZonesForNumberKey() защищенный Метод

{@code key} could be the calling country code and the full significant number of a certain number, or it could be just a phone-number prefix. For example, the full number 16502530000 (from the phone-number +1 650 253 0000) is a valid input. Also, any of its prefixes, such as 16502, is also valid.

protected lookupTimeZonesForNumberKey ( $key ) : array
$key int the key to look up
Результат array the list of corresponding time zones

tokenizeRawOutputString() защищенный Метод

Split {@code timezonesString} into all the time zones that are part of it.
protected tokenizeRawOutputString ( $timezonesString ) : array
$timezonesString String
Результат array

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

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

protected $phonePrefixMap