PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.27.1
GiveWP – Donation Plugin and Fundraising Platform v2.27.1
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / vendor / fakerphp / faker / src / Faker / Provider / de_CH / PhoneNumber.php
PhoneNumber.php
44 lines 907 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Faker\Provider\de_CH;
4
5 class PhoneNumber extends \Faker\Provider\PhoneNumber
6 {
7 protected static $formats = array(
8 '+41 (0)## ### ## ##',
9 '+41(0)#########',
10 '+41 ## ### ## ##',
11 '0#########',
12 '0## ### ## ##',
13 );
14
15 /**
16 * An array of Swiss mobile (cell) phone number formats.
17 *
18 * @var array
19 */
20 protected static $mobileFormats = array(
21 // Local
22 '075 ### ## ##',
23 '075#######',
24 '076 ### ## ##',
25 '076#######',
26 '077 ### ## ##',
27 '077#######',
28 '078 ### ## ##',
29 '078#######',
30 '079 ### ## ##',
31 '079#######',
32 );
33
34 /**
35 * Return a Swiss mobile phone number.
36 *
37 * @return string
38 */
39 public static function mobileNumber()
40 {
41 return static::numerify(static::randomElement(static::$mobileFormats));
42 }
43 }
44