ValidGenerator
in package
Proxy for other generators, to return only valid values. Works with Faker\Generator\Base->valid()
Tags
Table of Contents
- $generator : mixed
- $maxRetries : mixed
- $validator : mixed
- __call() : mixed
- Catch and proxy all generator calls with arguments but return only valid values
- __construct() : mixed
- __get() : mixed
- Catch and proxy all generator calls but return only valid values
Properties
$generator
protected
mixed
$generator
$maxRetries
protected
mixed
$maxRetries
$validator
protected
mixed
$validator
Methods
__call()
Catch and proxy all generator calls with arguments but return only valid values
public
__call(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Return values
mixed —__construct()
public
__construct(Generator $generator[, callable|null $validator = null ][, int $maxRetries = 10000 ]) : mixed
Parameters
- $generator : Generator
- $validator : callable|null = null
- $maxRetries : int = 10000
Return values
mixed —__get()
Catch and proxy all generator calls but return only valid values
public
__get(string $attribute) : mixed
Parameters
- $attribute : string