PHP Class Faker\Factory

显示文件 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_oe static_oe property

protected static $defaultProviders