| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Faker\Provider\fa_IR;
|
|
|
4 |
|
|
|
5 |
class PhoneNumber extends \Faker\Provider\PhoneNumber
|
|
|
6 |
{
|
|
|
7 |
/**
|
|
|
8 |
* @see https://fa.wikipedia.org/wiki/%D8%B4%D9%85%D8%A7%D8%B1%D9%87%E2%80%8C%D9%87%D8%A7%DB%8C_%D8%AA%D9%84%D9%81%D9%86_%D8%AF%D8%B1_%D8%A7%DB%8C%D8%B1%D8%A7%D9%86#.D8.AA.D9.84.D9.81.D9.86.E2.80.8C.D9.87.D8.A7.DB.8C_.D9.87.D9.85.D8.B1.D8.A7.D9.87
|
|
|
9 |
*/
|
|
|
10 |
protected static $formats = [ // land line formts seprated by province
|
|
|
11 |
'011########', //Mazandaran
|
|
|
12 |
'013########', //Gilan
|
|
|
13 |
'017########', //Golestan
|
|
|
14 |
'021########', //Tehran
|
|
|
15 |
'023########', //Semnan
|
|
|
16 |
'024########', //Zanjan
|
|
|
17 |
'025########', //Qom
|
|
|
18 |
'026########', //Alborz
|
|
|
19 |
'028########', //Qazvin
|
|
|
20 |
'031########', //Isfahan
|
|
|
21 |
'034########', //Kerman
|
|
|
22 |
'035########', //Yazd
|
|
|
23 |
'038########', //Chaharmahal and Bakhtiari
|
|
|
24 |
'041########', //East Azerbaijan
|
|
|
25 |
'044########', //West Azerbaijan
|
|
|
26 |
'045########', //Ardabil
|
|
|
27 |
'051########', //Razavi Khorasan
|
|
|
28 |
'054########', //Sistan and Baluchestan
|
|
|
29 |
'056########', //South Khorasan
|
|
|
30 |
'058########', //North Khorasan
|
|
|
31 |
'061########', //Khuzestan
|
|
|
32 |
'066########', //Lorestan
|
|
|
33 |
'071########', //Fars
|
|
|
34 |
'074########', //Kohgiluyeh and Boyer-Ahmad
|
|
|
35 |
'076########', //Hormozgan
|
|
|
36 |
'077########', //Bushehr
|
|
|
37 |
'081########', //Hamadan
|
|
|
38 |
'083########', //Kermanshah
|
|
|
39 |
'084########', //Ilam
|
|
|
40 |
'086########', //Markazi
|
|
|
41 |
'087########', //Kurdistan
|
|
|
42 |
];
|
|
|
43 |
|
|
|
44 |
protected static $mobileNumberPrefixes = [
|
|
|
45 |
'0910#######', //mci
|
|
|
46 |
'0911#######',
|
|
|
47 |
'0912#######',
|
|
|
48 |
'0913#######',
|
|
|
49 |
'0914#######',
|
|
|
50 |
'0915#######',
|
|
|
51 |
'0916#######',
|
|
|
52 |
'0917#######',
|
|
|
53 |
'0918#######',
|
|
|
54 |
'0919#######',
|
|
|
55 |
'0901#######',
|
|
|
56 |
'0901#######',
|
|
|
57 |
'0902#######',
|
|
|
58 |
'0903#######',
|
|
|
59 |
'0930#######',
|
|
|
60 |
'0933#######',
|
|
|
61 |
'0935#######',
|
|
|
62 |
'0936#######',
|
|
|
63 |
'0937#######',
|
|
|
64 |
'0938#######',
|
|
|
65 |
'0939#######',
|
|
|
66 |
'0920#######',
|
|
|
67 |
'0921#######',
|
|
|
68 |
'0937#######',
|
|
|
69 |
'0990#######', // MCI
|
|
|
70 |
];
|
|
|
71 |
|
|
|
72 |
public static function mobileNumber()
|
|
|
73 |
{
|
|
|
74 |
return static::numerify(static::randomElement(static::$mobileNumberPrefixes));
|
|
|
75 |
}
|
|
|
76 |
}
|