Documentation

DefaultGenerator
in package

This generator returns a default value for all called properties and methods. It works with Faker\Generator\Base->optional().

Tags
mixin

Generator

Table of Contents

$default  : mixed
__call()  : mixed
__construct()  : mixed
__get()  : mixed

Properties

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
Tags
deprecated

Use a method instead.

Return values
mixed

Search results