PHP Класс libphonenumber\prefixmapper\PhonePrefixMap

Class PhonePrefixMap
Показать файл Открыть проект

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

Свойство Тип Описание
$phonePrefixMapStorage
$phoneUtil libphonenumber\PhoneNumberUtil

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

Метод Описание
__construct ( $map )
lookup ( PhoneNumber $number ) : string | null Returns the description of the {@code $number}. This method distinguishes the case of an invalid prefix and a prefix for which the name is not available in the current language. If the description is not available in the current language an empty string is returned. If no description was found for the provided number, null is returned.
lookupKey ( $key )

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

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

public __construct ( $map )

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

Returns the description of the {@code $number}. This method distinguishes the case of an invalid prefix and a prefix for which the name is not available in the current language. If the description is not available in the current language an empty string is returned. If no description was found for the provided number, null is returned.
public lookup ( PhoneNumber $number ) : string | null
$number libphonenumber\PhoneNumber The phone number to look up
Результат string | null the description of the number

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

public lookupKey ( $key )

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

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

protected $phonePrefixMapStorage

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

protected PhoneNumberUtil,libphonenumber $phoneUtil
Результат libphonenumber\PhoneNumberUtil