Server IP : 23.254.227.96 / Your IP : 216.73.216.41 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/viralblo/instantblog/vendor/fakerphp/faker/src/Faker/Provider/ro_RO/ |
Upload File : |
<?php namespace Faker\Provider\ro_RO; class PhoneNumber extends \Faker\Provider\PhoneNumber { protected static $normalFormats = [ 'landline' => [ '021#######', // Bucharest '023#######', '024#######', '025#######', '026#######', '027#######', // non-geographic '031#######', // Bucharest '033#######', '034#######', '035#######', '036#######', '037#######', // non-geographic ], 'mobile' => [ '07########', ], ]; protected static $specialFormats = [ 'toll-free' => [ '0800######', '0801######', // shared-cost numbers '0802######', // personal numbering '0806######', // virtual cards '0807######', // pre-paid cards '0870######', // internet dial-up ], 'premium-rate' => [ '0900######', '0903######', // financial information '0906######', // adult entertainment ], ]; /** * @see http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania#Last_years */ public function phoneNumber() { $type = static::randomElement(array_keys(static::$normalFormats)); return static::numerify(static::randomElement(static::$normalFormats[$type])); } public static function tollFreePhoneNumber() { return static::numerify(static::randomElement(static::$specialFormats['toll-free'])); } public static function premiumRatePhoneNumber() { return static::numerify(static::randomElement(static::$specialFormats['premium-rate'])); } }