1
0
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:
Ferid Mövsümov 2012-12-10 15:25:47 +02:00
parent 28d1dad66a
commit 12820746df
2 changed files with 18 additions and 2 deletions
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
*

@ -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));
}
}