mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-24 09:19:50 +01:00
Added PhoneNumber provider for tr_TR
This commit is contained in:
parent
28d1dad66a
commit
12820746df
src/Faker/Provider
@ -4,9 +4,9 @@ namespace Faker\Provider;
|
||||
|
||||
class Miscellaneous extends \Faker\Provider\Base
|
||||
{
|
||||
protected static $languageCode = array('cn', 'de', 'en', 'es', 'fr', 'it', 'pt', 'ru');
|
||||
protected static $languageCode = array('cn', 'de', 'en', 'es', 'fr', 'it', 'pt', 'ru','tr','az');
|
||||
|
||||
protected static $countryCode = array('CA', 'CN', 'DE', 'ES', 'FR', 'IE', 'IN', 'IT', 'MX', 'PT', 'RU', 'UK', 'US');
|
||||
protected static $countryCode = array('CA', 'CN', 'DE', 'ES', 'FR', 'IE', 'IN', 'IT', 'MX', 'PT', 'RU', 'UK', 'US','AZ','TR');
|
||||
/**
|
||||
* Return a boolean, true or false
|
||||
*
|
||||
|
16
src/Faker/Provider/tr_TR/PhoneNumber.php
Normal file
16
src/Faker/Provider/tr_TR/PhoneNumber.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\tr_TR;
|
||||
|
||||
class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
protected static $formats = array('0##########');
|
||||
|
||||
/**
|
||||
* @example '05544397503'
|
||||
*/
|
||||
public static function phoneNumber()
|
||||
{
|
||||
return static::numerify(static::randomElement(static::$formats));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user