RegionCode.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. */
  20. class RegionCode
  21. {
  22. // Region code for global networks (e.g. +800 numbers).
  23. const UN001 = '001';
  24. const AD = 'AD';
  25. const AE = 'AE';
  26. const AM = 'AM';
  27. const AO = 'AO';
  28. const AQ = 'AQ';
  29. const AR = 'AR';
  30. const AU = 'AU';
  31. const BB = 'BB';
  32. const BR = 'BR';
  33. const BS = 'BS';
  34. const BY = 'BY';
  35. const CA = 'CA';
  36. const CH = 'CH';
  37. const CL = 'CL';
  38. const CN = 'CN';
  39. const CS = 'CS';
  40. const CX = 'CX';
  41. const DE = 'DE';
  42. const FR = 'FR';
  43. const GB = 'GB';
  44. const HU = 'HU';
  45. const IT = 'IT';
  46. const JP = 'JP';
  47. const KR = 'KR';
  48. const MX = 'MX';
  49. const NZ = 'NZ';
  50. const PG = 'PG';
  51. const PL = 'PL';
  52. const RE = 'RE';
  53. const RU = 'RU';
  54. const SE = 'SE';
  55. const SG = 'SG';
  56. const US = 'US';
  57. const UZ = 'UZ';
  58. const YT = 'YT';
  59. const ZW = 'ZW';
  60. // Official code for the unknown region.
  61. const ZZ = 'ZZ';
  62. }