DefaultGenerator
in package
This generator returns a default value for all called properties and methods. It works with Faker\Generator\Base->optional().
Tags
Table of Contents
- $default : mixed
- __call() : mixed
- __construct() : mixed
- __get() : mixed
Properties
$default
protected
mixed
$default
Methods
__call()
public
__call(string $method, array<string|int, mixed> $attributes) : mixed
Parameters
- $method : string
- $attributes : array<string|int, mixed>
Return values
mixed —__construct()
public
__construct([mixed $default = null ]) : mixed
Parameters
- $default : mixed = null
Return values
mixed —__get()
public
__get(string $attribute) : mixed
Parameters
- $attribute : string