RegionCode.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /*
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. namespace libphonenumber;
  17. /**
  18. * Class containing string constants of region codes for easier testing.
  19. * @internal
  20. */
  21. class RegionCode
  22. {
  23. // Region code for global networks (e.g. +800 numbers).
  24. const UN001 = '001';
  25. const AD = 'AD';
  26. const AE = 'AE';
  27. const AM = 'AM';
  28. const AO = 'AO';
  29. const AQ = 'AQ';
  30. const AR = 'AR';
  31. const AU = 'AU';
  32. const BB = 'BB';
  33. const BR = 'BR';
  34. const BS = 'BS';
  35. const BY = 'BY';
  36. const CA = 'CA';
  37. const CH = 'CH';
  38. const CL = 'CL';
  39. const CN = 'CN';
  40. const CO = 'CO';
  41. const CS = 'CS';
  42. const CX = 'CX';
  43. const DE = 'DE';
  44. const FR = 'FR';
  45. const GB = 'GB';
  46. const HU = 'HU';
  47. const IT = 'IT';
  48. const JP = 'JP';
  49. const KR = 'KR';
  50. const MX = 'MX';
  51. const NZ = 'NZ';
  52. const PG = 'PG';
  53. const PL = 'PL';
  54. const RE = 'RE';
  55. const RU = 'RU';
  56. const SE = 'SE';
  57. const SG = 'SG';
  58. const US = 'US';
  59. const UZ = 'UZ';
  60. const YT = 'YT';
  61. const ZW = 'ZW';
  62. // Official code for the unknown region.
  63. const ZZ = 'ZZ';
  64. }