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
PhoneNumber.php
5 years ago
Text.php
5 years ago
PhoneNumber.php
52 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Faker\Provider\uk_UA; |
| 4 | |
| 5 | class PhoneNumber extends \Faker\Provider\PhoneNumber |
| 6 | { |
| 7 | /** |
| 8 | * @see list of Ukraine mobile formats (2017-08-08), source: https://ru.wikipedia.org/wiki/%D0%A2%D0%B5%D0%BB%D0%B5%D1%84%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BB%D0%B0%D0%BD_%D0%BD%D1%83%D0%BC%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%B8_%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D1%8B |
| 9 | */ |
| 10 | protected static $formats = array( |
| 11 | |
| 12 | // International format (mobile) |
| 13 | '+38050#######', |
| 14 | '+38066#######', |
| 15 | '+38068#######', |
| 16 | '+38096#######', |
| 17 | '+38067#######', |
| 18 | '+38091#######', |
| 19 | '+38092#######', |
| 20 | '+38093#######', |
| 21 | '+38094#######', |
| 22 | '+38095#######', |
| 23 | '+38096#######', |
| 24 | '+38097#######', |
| 25 | '+38098#######', |
| 26 | '+38063#######', |
| 27 | '+38099#######', |
| 28 | |
| 29 | // Internal country format (mobile) |
| 30 | '050#######', |
| 31 | '066#######', |
| 32 | '068#######', |
| 33 | '096#######', |
| 34 | '067#######', |
| 35 | '091#######', |
| 36 | '092#######', |
| 37 | '093#######', |
| 38 | '094#######', |
| 39 | '095#######', |
| 40 | '096#######', |
| 41 | '097#######', |
| 42 | '098#######', |
| 43 | '063#######', |
| 44 | '099#######', |
| 45 | |
| 46 | // More generic formats |
| 47 | '+38(0##)#######', |
| 48 | '+38(0###)######', |
| 49 | '+38(0####)#####' |
| 50 | ); |
| 51 | } |
| 52 |