1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 00:09:59 +01:00

Added en_GB PhoneNumber provider

This commit is contained in:
Matt Lody 2011-10-17 20:57:51 +01:00
parent 52897b8b52
commit 24533417c3

View File

@ -1,35 +1,22 @@
<?php
namespace Faker\Provider\en_US;
namespace Faker\Provider\en_GB;
require_once __DIR__ . '/../PhoneNumber.php';
class PhoneNumber extends \Faker\Provider\PhoneNumber
{
protected static $formats = array(
'+##(#)##########',
'+##(#)##########',
'+44(0)##########',
'+44(0)#### ######',
'+44(0)#########',
'+44(0)#### #####',
'0##########',
'0##########',
'###-###-####',
'(###)###-####',
'1-###-###-####',
'###.###.####',
'###-###-####',
'(###)###-####',
'1-###-###-####',
'###.###.####',
'###-###-####x###',
'(###)###-####x###',
'1-###-###-####x###',
'###.###.####x###',
'###-###-####x####',
'(###)###-####x####',
'1-###-###-####x####',
'###.###.####x####',
'###-###-####x#####',
'(###)###-####x#####',
'1-###-###-####x#####',
'###.###.####x#####'
'0#########',
'0#### ######',
'0#### #####',
'(0####) ######',
'(0####) #####',
);
}