1441 |
ariadna |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace libphonenumber;
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* INTERNATIONAL and NATIONAL formats are consistent with the definition in ITU-T Recommendation
|
|
|
7 |
* E123. For example, the number of the Google Switzerland office will be written as
|
|
|
8 |
* "+41 44 668 1800" in INTERNATIONAL format, and as "044 668 1800" in NATIONAL format.
|
|
|
9 |
* E164 format is as per INTERNATIONAL format but with no formatting applied, e.g.
|
|
|
10 |
* "+41446681800". RFC3966 is as per INTERNATIONAL format, but with all spaces and other
|
|
|
11 |
* separating symbols replaced with a hyphen, and with any phone number extension appended with
|
|
|
12 |
* ";ext=". It also will have a prefix of "tel:" added, e.g. "tel:+41-44-668-1800".
|
|
|
13 |
*
|
|
|
14 |
* Note: If you are considering storing the number in a neutral format, you are highly advised to
|
|
|
15 |
* use the PhoneNumber class.
|
|
|
16 |
*/
|
|
|
17 |
class PhoneNumberFormat
|
|
|
18 |
{
|
|
|
19 |
public const E164 = 0;
|
|
|
20 |
public const INTERNATIONAL = 1;
|
|
|
21 |
public const NATIONAL = 2;
|
|
|
22 |
public const RFC3966 = 3;
|
|
|
23 |
}
|