MetadataSourceInterface.php 633 B

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