5
5
class PhoneNumber extends \Faker \Provider \PhoneNumber
6
6
{
7
7
/**
8
- * Returns the pt_PT phone country code.
8
+ * Phone country code.
9
9
*/
10
10
public const COUNTRY_CODE = '+351 ' ;
11
11
12
12
/**
13
- * pt_PT Mobile Service Codes
13
+ * Mobile Service Codes
14
14
*/
15
15
public const MOBILE_SERVICE_CODE = [
16
16
91 ,
@@ -20,7 +20,7 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
20
20
];
21
21
22
22
/**
23
- * pt_PT Geographic Area Codes
23
+ * Geographic Area Codes
24
24
*/
25
25
public const AREA_CODE = [
26
26
21 ,
@@ -35,24 +35,24 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
35
35
];
36
36
37
37
/**
38
- * pt_PT Geographic Area and Mobile Service Codes
38
+ * Geographic Area and Mobile Service Codes
39
39
*/
40
- public const AREA_OR_MOBILE_SERVICE_CODE = [
41
- ...self ::MOBILE_SERVICE_CODE ,
40
+ public const AREA_AND_MOBILE_SERVICE_CODE = [
42
41
...self ::AREA_CODE ,
42
+ ...self ::MOBILE_SERVICE_CODE ,
43
43
];
44
44
45
45
/**
46
46
* @see http://en.wikipedia.org/wiki/Telephone_numbers_in_Portugal
47
47
*/
48
48
protected static $ formats = [
49
- '{{countryCode}} {{areaOrMobileServiceCode }}####### ' ,
49
+ '{{countryCode}} {{areaAndMobileServiceCode }}####### ' ,
50
50
'{{mobileServiceCode}}####### ' ,
51
51
'{{areaCode}}####### ' ,
52
52
];
53
53
54
54
protected static $ e164Formats = [
55
- '{{countryCode}}{{areaOrMobileServiceCode }}####### ' ,
55
+ '{{countryCode}}{{areaAndMobileServiceCode }}####### ' ,
56
56
];
57
57
58
58
protected static $ e164MobileFormat = [
@@ -75,23 +75,23 @@ public static function mobileNumber()
75
75
return static ::numerify (static ::randomElement (static ::$ mobileNumberPrefixes ));
76
76
}
77
77
78
- public static function areaOrMobileServiceCode ()
78
+ public static function areaAndMobileServiceCode ()
79
79
{
80
- return self ::randomElement (static :: AREA_OR_MOBILE_SERVICE_CODE );
80
+ return static ::randomElement (self :: AREA_AND_MOBILE_SERVICE_CODE );
81
81
}
82
82
83
83
public static function areaCode ()
84
84
{
85
- return self ::randomElement (static ::AREA_CODE );
85
+ return static ::randomElement (self ::AREA_CODE );
86
86
}
87
87
88
88
public static function mobileServiceCode ()
89
89
{
90
- return self ::randomElement (static ::MOBILE_SERVICE_CODE );
90
+ return static ::randomElement (self ::MOBILE_SERVICE_CODE );
91
91
}
92
92
93
93
/**
94
- * Returns the pt_PT phone country code.
94
+ * Returns the phone country code.
95
95
*
96
96
* @return string
97
97
*/
@@ -101,8 +101,8 @@ public static function countryCode()
101
101
}
102
102
103
103
/**
104
- * Returns a pt_PT mobile number in E.164 format.
105
- *
104
+ * Returns a mobile number in E.164 format.
105
+ *
106
106
* Example: +35193XXXXXXX
107
107
*
108
108
* @return string
@@ -113,8 +113,8 @@ public function e164MobileNumber()
113
113
}
114
114
115
115
/**
116
- * Returns a pt_PT landline number in E.164 format.
117
- *
116
+ * Returns a landline number in E.164 format.
117
+ *
118
118
* Example: +35121XXXXXXX
119
119
*
120
120
* @return string
@@ -123,4 +123,4 @@ public function e164LandlineNumber()
123
123
{
124
124
return static ::numerify ($ this ->generator ->parse (static ::randomElement (static ::$ e164LandlineFormat )));
125
125
}
126
- }
126
+ }
0 commit comments