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

add safe email domain method

This commit is contained in:
Charles SANQUER 2013-02-11 08:17:58 +01:00
parent 9fe1a478ad
commit e82a86f8c1

View File

@ -64,7 +64,14 @@ class Internet extends \Faker\Provider\Base
{
return static::randomElement(static::$freeEmailDomain);
}
/**
* @example 'example.org'
*/
public static function safeEmailDomain()
{
return 'example.' . static::randomElement(static::$safeEmailTld);
}
/**
* @example 'jdoe'
*/