PHP Class libphonenumber\prefixmapper\PhonePrefixMap

Class PhonePrefixMap
Afficher le fichier Open project: giggsey/libphonenumber-for-php

Protected Properties

Свойство Type Description
$phonePrefixMapStorage
$phoneUtil libphonenumber\PhoneNumberUtil

Méthodes publiques

Méthode Description
__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 )

Method Details

__construct() public méthode

public __construct ( $map )

lookup() public méthode

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
Résultat string | null the description of the number

lookupKey() public méthode

public lookupKey ( $key )

Property Details

$phonePrefixMapStorage protected_oe property

protected $phonePrefixMapStorage

$phoneUtil protected_oe property

protected PhoneNumberUtil,libphonenumber $phoneUtil
Résultat libphonenumber\PhoneNumberUtil