UniqueGenerator
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
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
at line 32
mixed
__get(string $attribute)
Catch and proxy all generator calls but return only unique values
at line 43
mixed
__call(string $name, array $arguments)
Catch and proxy all generator calls with arguments but return only unique values