Skip to content

Commit

Permalink
Merge pull request #11 from krome162504/email_converter
Browse files Browse the repository at this point in the history
add safe email converter
  • Loading branch information
digilist authored Aug 14, 2018
2 parents 7787b11 + e6f84bb commit 50c4bdc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Converter/EmailConverter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Digilist\SnakeDumper\Converter;

use Faker;

/**
* The EmailConverter replaces a value
* with a random email.
*/
class EmailConverter extends FakerConverter
{

public function __construct(array $arguments = array())
{
$arguments['formatter'] = 'safeEmail';

parent::__construct($arguments);
}

}

0 comments on commit 50c4bdc

Please sign in to comment.