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:
parent
9fe1a478ad
commit
e82a86f8c1
@ -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'
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user