PHP Class schmunk42\giiant\helpers\GiiantFaker

Inheritance: extends Faker\Factory
Afficher le fichier Open project: schmunk42/yii2-giiant Class Usage Examples

Méthodes publiques

Méthode Description
boolean ( ) : mixed
create ( ) : Generator Returns new instance of Faker generator class.
date ( null $format = null ) : mixed
datetime ( null $format = null ) : mixed
integer ( string $methodName = '' ) : mixed
number ( string $methodName = '' ) : mixed
provider ( string $type = self::TYPE_STRING, string $methodName = '', null $format = null ) Tries to execute Faker's provider methods like email, address, title etc, if method is found.
string ( string $methodName = '' ) : mixed
time ( null $format = null ) : mixed
timestamp ( null $format = null ) : mixed
value ( string $type = self::TYPE_STRING, string $methodName = '', null $format = null ) : mixed Returns Faker value.

Method Details

boolean() public static méthode

public static boolean ( ) : mixed
Résultat mixed

create() public static méthode

Returns new instance of Faker generator class.
public static create ( ) : Generator
Résultat Faker\Generator

date() public static méthode

public static date ( null $format = null ) : mixed
$format null - Custom format
Résultat mixed

datetime() public static méthode

public static datetime ( null $format = null ) : mixed
$format null - Custom format
Résultat mixed

integer() public static méthode

public static integer ( string $methodName = '' ) : mixed
$methodName string model's attribute type trying to match Faker's method name
Résultat mixed

number() public static méthode

public static number ( string $methodName = '' ) : mixed
$methodName string model's attribute type trying to match Faker's method name
Résultat mixed

provider() public static méthode

Tries to execute Faker's provider methods like email, address, title etc, if method is found.
public static provider ( string $type = self::TYPE_STRING, string $methodName = '', null $format = null )
$type string model's attribute type
$methodName string model's attribute type trying to match Faker's method name
$format null custom data format used in Faker

string() public static méthode

public static string ( string $methodName = '' ) : mixed
$methodName string model's attribute type trying to match Faker's method name
Résultat mixed

time() public static méthode

public static time ( null $format = null ) : mixed
$format null - Custom format
Résultat mixed

timestamp() public static méthode

public static timestamp ( null $format = null ) : mixed
$format null - Custom format
Résultat mixed

value() public static méthode

Returns Faker value.
public static value ( string $type = self::TYPE_STRING, string $methodName = '', null $format = null ) : mixed
$type string model's attribute type
$methodName string model's attribute type trying to match Faker's method name
$format null custom data format used in Faker
Résultat mixed