class UniqueGenerator

Proxy for other generators, to return only unique values. Works with Poppy\Faker\Generator\Base->unique()

Properties

protected $generator
protected $maxRetries
protected $uniques

Methods

__construct(Generator $generator, int $maxRetries = 10000)

No description

mixed
__get(string $attribute)

Catch and proxy all generator calls but return only unique values

mixed
__call(string $name, array $arguments)

Catch and proxy all generator calls with arguments but return only unique values

Details

at line 21
__construct(Generator $generator, int $maxRetries = 10000)

No description

Parameters

Generator $generator
int $maxRetries

at line 32
mixed __get(string $attribute)

Catch and proxy all generator calls but return only unique values

Parameters

string $attribute

Return Value

mixed

at line 43
mixed __call(string $name, array $arguments)

Catch and proxy all generator calls with arguments but return only unique values

Parameters

string $name
array $arguments

Return Value

mixed