ValidGenerator
class ValidGenerator
Proxy for other generators, to return only valid values. Works with Poppy\Faker\Generator\Base->valid()
Properties
protected | $generator | ||
protected | $validator | ||
protected | $maxRetries |
Methods
__construct(Generator $generator, callable|null $validator = null, int $maxRetries = 10000)
No description
mixed
__get(string $attribute)
Catch and proxy all generator calls but return only valid values
mixed
__call(string $name, array $arguments)
Catch and proxy all generator calls with arguments but return only valid values
Details
at line 25
__construct(Generator $generator, callable|null $validator = null, int $maxRetries = 10000)
No description
at line 46
mixed
__get(string $attribute)
Catch and proxy all generator calls but return only valid values
at line 58
mixed
__call(string $name, array $arguments)
Catch and proxy all generator calls with arguments but return only valid values