Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Addition of en_GB mobileNumber methods #438

Merged
merged 4 commits into from
Jan 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/Faker/Provider/en_GB/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,24 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
'(0####) ######',
'(0####) #####',
);

/**
* An array of en_GB mobile (cell) phone number formats
* @var array
*/
protected static $mobileFormats = array(
// Local
'07#########',
'07### ######',
'07### ### ###'
);

/**
* Return a en_GB mobile phone number
* @return string
*/
public static function mobileNumber()
{
return static::numerify(static::randomElement(static::$mobileFormats));
}
}
9 changes: 0 additions & 9 deletions src/Faker/Provider/en_NZ/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,6 @@ public static function mobileNumber()
return static::numerify(static::randomElement(static::$mobileFormats));
}

/**
* Return a en_NZ cell (mobile) phone number
* @return string
*/
public static function cellNumber()
{
return static::mobileNumber();
}

/**
* Return a en_NZ toll free phone number
* @return string
Expand Down