| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Faker\Provider\ar_JO;
|
|
|
4 |
|
|
|
5 |
class Internet extends \Faker\Provider\Internet
|
|
|
6 |
{
|
|
|
7 |
protected static $userNameFormats = [
|
|
|
8 |
'{{lastNameAscii}}.{{firstNameAscii}}',
|
|
|
9 |
'{{firstNameAscii}}.{{lastNameAscii}}',
|
|
|
10 |
'{{firstNameAscii}}##',
|
|
|
11 |
'?{{lastNameAscii}}',
|
|
|
12 |
];
|
|
|
13 |
protected static $safeEmailTld = [
|
|
|
14 |
'com', 'jo', 'me', 'net', 'org',
|
|
|
15 |
];
|
|
|
16 |
|
|
|
17 |
protected static $tld = [
|
|
|
18 |
'biz', 'com', 'info', 'jo', 'net', 'org',
|
|
|
19 |
];
|
|
|
20 |
|
|
|
21 |
protected static $lastNameAscii = [
|
|
|
22 |
'abbad', 'abbadi', 'abbas', 'abulebbeh', 'flefel', 'hadi', 'hamad', 'hasan', 'jabri', 'kanaan', 'karam', 'maanee', 'melhem', 'nimry', 'obaisi', 'qasem', 'qawasmee', 'rabee', 'rashwani', 'shami', 'zaloum',
|
|
|
23 |
];
|
|
|
24 |
protected static $firstNameAscii = [
|
|
|
25 |
'abd', 'abdullah', 'ahmad', 'akram', 'amr', 'bashar', 'bilal', 'fadi', 'ibrahim', 'khaled', 'layth', 'mohammad', 'mutaz', 'omar', 'osama', 'rami', 'saleem', 'samer', 'sami', 'yazan',
|
|
|
26 |
];
|
|
|
27 |
|
|
|
28 |
public static function lastNameAscii()
|
|
|
29 |
{
|
|
|
30 |
return static::randomElement(static::$lastNameAscii);
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public static function firstNameAscii()
|
|
|
34 |
{
|
|
|
35 |
return static::randomElement(static::$firstNameAscii);
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
/**
|
|
|
39 |
* @example 'ahmad.abbadi'
|
|
|
40 |
*/
|
|
|
41 |
public function userName()
|
|
|
42 |
{
|
|
|
43 |
$format = static::randomElement(static::$userNameFormats);
|
|
|
44 |
|
|
|
45 |
return static::bothify($this->generator->parse($format));
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* @example 'wewebit.jo'
|
|
|
50 |
*/
|
|
|
51 |
public function domainName()
|
|
|
52 |
{
|
|
|
53 |
return static::randomElement(static::$lastNameAscii) . '.' . $this->tld();
|
|
|
54 |
}
|
|
|
55 |
}
|