mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-18 21:36:21 +00:00
* Add locale and libphonenumber libraries. * Update country code information Updated existing country codes, fixed incorrect NANP codes for member countries (as well as several UK based ones). Also added in Country Name to ISO country code mapping array for use with libphonenumber. * Convert phone number formatting to use libphonenumber libphonenumber parses phone number more consistantly than the old regex's that mismatched number on a regular basis.
21 lines
633 B
PHP
21 lines
633 B
PHP
<?php
|
|
|
|
namespace libphonenumber;
|
|
|
|
interface MetadataSourceInterface
|
|
{
|
|
/**
|
|
* Gets phone metadata for a region.
|
|
* @param string $regionCode the region code.
|
|
* @return PhoneMetadata the phone metadata for that region, or null if there is none.
|
|
*/
|
|
public function getMetadataForRegion($regionCode);
|
|
|
|
/**
|
|
* Gets phone metadata for a non-geographical region.
|
|
* @param int $countryCallingCode the country calling code.
|
|
* @return PhoneMetadata the phone metadata for that region, or null if there is none.
|
|
*/
|
|
public function getMetadataForNonGeographicalRegion($countryCallingCode);
|
|
}
|