class UniqueGenerator

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

Methods

__construct( Generator $generator, integer $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

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

Parameters

Generator $generator
integer $maxRetries

mixed __get( string $attribute)

Catch and proxy all generator calls but return only unique values

Parameters

string $attribute

Return Value

mixed

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