class ValidGenerator

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

Methods

__construct( Generator $generator, callable|null $validator = null, integer $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

__construct( Generator $generator, callable|null $validator = null, integer $maxRetries = 10000)

Parameters

Generator $generator
callable|null $validator
integer $maxRetries

mixed __get( string $attribute)

Catch and proxy all generator calls but return only valid values

Parameters

string $attribute

Return Value

mixed

mixed __call( string $name, array $arguments)

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

Parameters

string $name
array $arguments

Return Value

mixed