PHP Class Faker\Factory

Show file Open project: fzaninotto/faker Class Usage Examples

Protected Properties

Property Type Description
$defaultProviders

Public Methods

Method Description
create ( string $locale = self::DEFAULT_LOCALE ) : Generator Create a new generator

Protected Methods

Method Description
findProviderClassname ( string $provider, string $locale = '' ) : string
getProviderClassname ( string $provider, string $locale = '' ) : string

Method Details

create() public static method

Create a new generator
public static create ( string $locale = self::DEFAULT_LOCALE ) : Generator
$locale string
return Generator

findProviderClassname() protected static method

protected static findProviderClassname ( string $provider, string $locale = '' ) : string
$provider string
$locale string
return string

getProviderClassname() protected static method

protected static getProviderClassname ( string $provider, string $locale = '' ) : string
$provider string
$locale string
return string

Property Details

$defaultProviders protected static property

protected static $defaultProviders