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