FakerService.php in General Data Protection Regulation 3.0.x
Same filename and directory in other branches
Namespace
Drupal\anonymizer\ServiceFile
modules/anonymizer/src/Service/FakerService.phpView source
<?php
namespace Drupal\anonymizer\Service;
use Faker\Factory;
/**
* Class FakerService.
*
* @package Drupal\anonymizer\Service
*/
class FakerService implements FakerServiceInterface {
/**
* The faker generator.
*
* @var \Faker\Generator
*/
protected $generator;
/**
* FakerService constructor.
*/
public function __construct() {
$this->generator = Factory::create();
}
/**
* Return the generator.
*
* @return \Faker\Generator
* The generator.
*/
public function generator() {
return $this->generator;
}
}
Classes
Name | Description |
---|---|
FakerService | Class FakerService. |