1 | <?php |
||
15 | class PhonePrefixMap |
||
16 | { |
||
17 | protected $phonePrefixMapStorage = array(); |
||
18 | /** |
||
19 | * @var PhoneNumberUtil |
||
20 | */ |
||
21 | protected $phoneUtil; |
||
22 | |||
23 | 19 | public function __construct($map) |
|
28 | |||
29 | /** |
||
30 | * Returns the description of the {@code $number}. This method distinguishes the case of an invalid |
||
31 | * prefix and a prefix for which the name is not available in the current language. If the |
||
32 | * description is not available in the current language an empty string is returned. If no |
||
33 | * description was found for the provided number, null is returned. |
||
34 | * |
||
35 | * @param PhoneNumber $number The phone number to look up |
||
36 | * @return string|null the description of the number |
||
37 | */ |
||
38 | 21 | public function lookup(PhoneNumber $number) |
|
44 | |||
45 | 29 | public function lookupKey($key) |
|
61 | } |
||
62 |