Address.php
5 years ago
Color.php
5 years ago
Company.php
5 years ago
Internet.php
5 years ago
Payment.php
5 years ago
Person.php
5 years ago
Text.php
5 years ago
Internet.php
56 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Faker\Provider\ar_SA; |
| 4 | |
| 5 | class Internet extends \Faker\Provider\Internet |
| 6 | { |
| 7 | protected static $userNameFormats = array( |
| 8 | '{{lastNameAscii}}.{{firstNameAscii}}', |
| 9 | '{{firstNameAscii}}.{{lastNameAscii}}', |
| 10 | '{{firstNameAscii}}##', |
| 11 | '?{{lastNameAscii}}', |
| 12 | ); |
| 13 | protected static $safeEmailTld = array( |
| 14 | 'com', 'jo', 'me', 'net', 'org', |
| 15 | ); |
| 16 | |
| 17 | protected static $tld = array( |
| 18 | 'biz', 'com', 'info', 'sa', 'net', 'org', |
| 19 | ); |
| 20 | |
| 21 | protected static $lastNameAscii = array( |
| 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 = array( |
| 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 | } |
| 56 |