-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
PhoneNumberType.php
106 lines (89 loc) · 2.02 KB
/
PhoneNumberType.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
declare(strict_types=1);
namespace Brick\PhoneNumber;
/**
* Enum values for the phone number types.
*/
enum PhoneNumberType: int
{
/**
* Fixed line number.
*/
case FIXED_LINE = 0;
/**
* Mobile number.
*/
case MOBILE = 1;
/**
* Fixed line or mobile number.
*
* In some regions (e.g. the USA), it is impossible to distinguish between fixed-line and
* mobile numbers by looking at the phone number itself.
*/
case FIXED_LINE_OR_MOBILE = 2;
/**
* Freephone number.
*/
case TOLL_FREE = 3;
/**
* Premium rate number.
*/
case PREMIUM_RATE = 4;
/**
* Shared cost number.
*
* The cost of this call is shared between the caller and the recipient, and is hence typically
* less than PREMIUM_RATE calls.
*
* @see http://en.wikipedia.org/wiki/Shared_Cost_Service
*/
case SHARED_COST = 5;
/**
* Voice over IP number.
*
* This includes TSoIP (Telephony Service over IP).
*/
case VOIP = 6;
/**
* Personal number.
*
* A personal number is associated with a particular person, and may be routed to either a
* MOBILE or FIXED_LINE number.
*
* @see http://en.wikipedia.org/wiki/Personal_Numbers
*/
case PERSONAL_NUMBER = 7;
/**
* Pager number.
*/
case PAGER = 8;
/**
* Universal Access Number or Company Number.
*
* The number may be further routed to specific offices, but allows one number to be used for a company.
*/
case UAN = 9;
/**
* Unknown number type.
*
* A phone number is of type UNKNOWN when it does not fit any of the known patterns
* for a specific region.
*/
case UNKNOWN = 10;
/**
* Emergency number.
*/
case EMERGENCY = 27;
/**
* Voicemail number.
*/
case VOICEMAIL = 28;
/**
* Short code number.
*/
case SHORT_CODE = 29;
/**
* Standard rate number.
*/
case STANDARD_RATE = 30;
}