Address.php
5 years ago
Company.php
5 years ago
Internet.php
5 years ago
Payment.php
5 years ago
Person.php
5 years ago
PhoneNumber.php
5 years ago
PhoneNumber.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Faker\Provider\el_CY; |
| 4 | |
| 5 | class PhoneNumber extends \Faker\Provider\PhoneNumber |
| 6 | { |
| 7 | protected static $formats = array( |
| 8 | '+3572#######', |
| 9 | '+3579#######', |
| 10 | '2#######', |
| 11 | '9#######', |
| 12 | ); |
| 13 | |
| 14 | /** |
| 15 | * An array of el_CY mobile (cell) phone number formats. |
| 16 | * |
| 17 | * @var array |
| 18 | */ |
| 19 | protected static $mobileFormats = array( |
| 20 | '9#######', |
| 21 | ); |
| 22 | |
| 23 | /** |
| 24 | * Return a el_CY mobile phone number. |
| 25 | * |
| 26 | * @return string |
| 27 | */ |
| 28 | public static function mobileNumber() |
| 29 | { |
| 30 | return static::numerify(static::randomElement(static::$mobileFormats)); |
| 31 | } |
| 32 | } |
| 33 |