![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/demo.cartinsight.co/vendor/fakerphp/faker/src/Faker/Provider/sv_SE/ |
<?php namespace Faker\Provider\sv_SE; /** * @see https://www.pts.se/sv/bransch/telefoni/nummer-och-adressering/telefoninummerplanen/telefonnummers-struktur/ */ class PhoneNumber extends \Faker\Provider\PhoneNumber { /** * @var array Swedish phone number formats */ protected static $formats = [ '08-### ### ##', '0%#-### ## ##', '0%########', '+46 (0)%## ### ###', '+46(0)%########', '+46 %## ### ###', '+46%########', '08-### ## ##', '0%#-## ## ##', '0%##-### ##', '0%#######', '+46 (0)8 ### ## ##', '+46 (0)%# ## ## ##', '+46 (0)%## ### ##', '+46 (0)%#######', '+46(0)%#######', '+46%#######', '08-## ## ##', '0%#-### ###', '0%#######', '+46 (0)%######', '+46(0)%######', '+46%######', ]; /** * @var array<int, string> Swedish mobile number formats */ protected static array $mobileFormats = [ '+467########', '+46(0)7########', '+46 (0)7## ## ## ##', '+46 (0)7## ### ###', '07## ## ## ##', '07## ### ###', '07##-## ## ##', '07##-### ###', '07# ### ## ##', '07#-### ## ##', '07#-#######', ]; public function mobileNumber(): string { $format = static::randomElement(static::$mobileFormats); return self::numerify($this->generator->parse($format)); } }