PluginProbe
PayPlug for WooCommerce (Official) / 1.2.2
PayPlug for WooCommerce (Official) v1.2.2
3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 All 101 releases
payplug / lib / libphonenumber / PhoneNumberType.php

PhoneNumberType.php in PayPlug for WooCommerce (Official) 1.2.2, at lib/libphonenumber/PhoneNumberType.php

69 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace libphonenumber;
4
5 /**
6 * Type of phone numbers.
7 */
8 class PhoneNumberType
9 {
10 const FIXED_LINE = 0;
11 const MOBILE = 1;
12 // In some regions (e.g. the USA), it is impossible to distinguish between fixed-line and
13 // mobile numbers by looking at the phone number itself.
14 const FIXED_LINE_OR_MOBILE = 2;
15 // Freephone lines
16 const TOLL_FREE = 3;
17 const PREMIUM_RATE = 4;
18 // The cost of this call is shared between the caller and the recipient, and is hence typically
19 // less than PREMIUM_RATE calls. See // http://en.wikipedia.org/wiki/Shared_Cost_Service for
20 // more information.
21 const SHARED_COST = 5;
22 // Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
23 const VOIP = 6;
24 // A personal number is associated with a particular person, and may be routed to either a
25 // MOBILE or FIXED_LINE number. Some more information can be found here:
26 // http://en.wikipedia.org/wiki/Personal_Numbers
27 const PERSONAL_NUMBER = 7;
28 const PAGER = 8;
29 // Used for "Universal Access Numbers" or "Company Numbers". They may be further routed to
30 // specific offices, but allow one number to be used for a company.
31 const UAN = 9;
32 // A phone number is of type UNKNOWN when it does not fit any of the known patterns for a
33 // specific region.
34 const UNKNOWN = 10;
35
36 // Emergency
37 const EMERGENCY = 27;
38
39 // Voicemail
40 const VOICEMAIL = 28;
41
42 // Short Code
43 const SHORT_CODE = 29;
44
45 // Standard Rate
46 const STANDARD_RATE = 30;
47
48 public static function values()
49 {
50 return array(
51 self::FIXED_LINE => 'FIXED_LINE',
52 self::MOBILE => 'MOBILE',
53 self::FIXED_LINE_OR_MOBILE => 'FIXED_LINE_OR_MOBILE',
54 self::TOLL_FREE => 'TOLL_FREE',
55 self::PREMIUM_RATE => 'PREMIUM_RATE',
56 self::SHARED_COST => 'SHARED_COST',
57 self::VOIP => 'VOIP',
58 self::PERSONAL_NUMBER => 'PERSONAL_NUMBER',
59 self::PAGER => 'PAGER',
60 self::UAN => 'UAN',
61 self::UNKNOWN => 'UNKNOWN',
62 self::EMERGENCY => 'EMERGENCY',
63 self::VOICEMAIL => 'VOICEMAIL',
64 self::SHORT_CODE => 'SHORT_CODE',
65 self::STANDARD_RATE => 'STANDARD_RATE',
66 );
67 }
68 }
69