PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.20.2
GiveWP – Donation Plugin and Fundraising Platform v2.20.2
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / vendor / fakerphp / faker / src / Faker / Provider / pt_PT / PhoneNumber.php
PhoneNumber.php
51 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Faker\Provider\pt_PT;
4
5 class PhoneNumber extends \Faker\Provider\PhoneNumber
6 {
7 /*
8 * @link http://en.wikipedia.org/wiki/Telephone_numbers_in_Portugal
9 */
10 protected static $formats = array(
11 '+351 91#######',
12 '+351 92#######',
13 '+351 93#######',
14 '+351 96#######',
15 '+351 21#######',
16 '+351 22#######',
17 '+351 23#######',
18 '+351 24#######',
19 '+351 25#######',
20 '+351 26#######',
21 '+351 27#######',
22 '+351 28#######',
23 '+351 29#######',
24 '91#######',
25 '92#######',
26 '93#######',
27 '96#######',
28 '21#######',
29 '22#######',
30 '23#######',
31 '24#######',
32 '25#######',
33 '26#######',
34 '27#######',
35 '28#######',
36 '29#######',
37 );
38
39 protected static $mobileNumberPrefixes = array(
40 '91#######',
41 '92#######',
42 '93#######',
43 '96#######',
44 );
45
46 public static function mobileNumber()
47 {
48 return static::numerify(static::randomElement(static::$mobileNumberPrefixes));
49 }
50 }
51