PHP Class Nelmio\Alice\Faker\GeneratorFactory

The factory implements the singleton pattern as it is not meant to be used with a Dependency Injection container as new instances are created with a locale value which is determined at runtime.
Afficher le fichier Open project: nelmio/alice Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Generator $generator )
createOrReturnExistingInstance ( string $locale ) : Generator
getSeedGenerator ( ) : Generator

Method Details

__construct() public méthode

public __construct ( Generator $generator )
$generator Faker\Generator

createOrReturnExistingInstance() public méthode

public createOrReturnExistingInstance ( string $locale ) : Generator
$locale string e.g. 'fr_FR', 'en_US'
Résultat Faker\Generator

getSeedGenerator() public méthode

public getSeedGenerator ( ) : Generator
Résultat Faker\Generator