PHP Class Faker\Generator

Afficher le fichier Open project: fzaninotto/faker Class Usage Examples

Protected Properties

Свойство Type Description
$formatters
$providers

Méthodes publiques

Méthode Description
__call ( string $method, array $attributes )
__get ( string $attribute )
addProvider ( $provider )
format ( $formatter, $arguments = [] )
getFormatter ( $formatter ) : Callable
getProviders ( )
parse ( string $string ) : string Replaces tokens ('{{ tokenName }}') with the result from the token method call
seed ( $seed = null )

Méthodes protégées

Méthode Description
callFormatWithMatches ( $matches )

Method Details

__call() public méthode

public __call ( string $method, array $attributes )
$method string
$attributes array

__get() public méthode

public __get ( string $attribute )
$attribute string

addProvider() public méthode

public addProvider ( $provider )

callFormatWithMatches() protected méthode

protected callFormatWithMatches ( $matches )

format() public méthode

public format ( $formatter, $arguments = [] )

getFormatter() public méthode

public getFormatter ( $formatter ) : Callable
Résultat Callable

getProviders() public méthode

public getProviders ( )

parse() public méthode

Replaces tokens ('{{ tokenName }}') with the result from the token method call
public parse ( string $string ) : string
$string string String that needs to bet parsed
Résultat string

seed() public méthode

public seed ( $seed = null )

Property Details

$formatters protected_oe property

protected $formatters

$providers protected_oe property

protected $providers