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

Commit

Permalink
Merge pull request #438 from daveblake/master
Browse files Browse the repository at this point in the history
Addition of en_GB mobileNumber methods
  • Loading branch information
fzaninotto committed Jan 4, 2015
2 parents 69a162a + 23bfe93 commit 8648a4d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
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

0 comments on commit 8648a4d

Please sign in to comment.