1441 |
ariadna |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
declare(strict_types=1);
|
|
|
4 |
|
|
|
5 |
namespace libphonenumber;
|
|
|
6 |
|
|
|
7 |
interface MetadataSourceInterface
|
|
|
8 |
{
|
|
|
9 |
/**
|
|
|
10 |
* Gets phone metadata for a region.
|
|
|
11 |
* @param string $regionCode the region code.
|
|
|
12 |
* @return PhoneMetadata the phone metadata for that region, or null if there is none.
|
|
|
13 |
*/
|
|
|
14 |
public function getMetadataForRegion(string $regionCode): PhoneMetadata;
|
|
|
15 |
|
|
|
16 |
/**
|
|
|
17 |
* Gets phone metadata for a non-geographical region.
|
|
|
18 |
* @param int $countryCallingCode the country calling code.
|
|
|
19 |
* @return PhoneMetadata the phone metadata for that region, or null if there is none.
|
|
|
20 |
*/
|
|
|
21 |
public function getMetadataForNonGeographicalRegion(int $countryCallingCode): PhoneMetadata;
|
|
|
22 |
}
|