Class schmunk42\giiant\helpers\GiiantFaker

Inheritanceschmunk42\giiant\helpers\GiiantFaker » Faker\Factory

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
FORMAT_DATE 'Y-m-d' schmunk42\giiant\helpers\GiiantFaker
FORMAT_DATETIME 'Y-m-d H:i:s' schmunk42\giiant\helpers\GiiantFaker
FORMAT_TIME 'H:i:s' schmunk42\giiant\helpers\GiiantFaker
FORMAT_TIMESTAMP 'Y-m-d H:i:s' schmunk42\giiant\helpers\GiiantFaker
TYPE_BOOLEAN 'boolean' schmunk42\giiant\helpers\GiiantFaker
TYPE_DATE 'date' schmunk42\giiant\helpers\GiiantFaker
TYPE_DATETIME 'datetime' schmunk42\giiant\helpers\GiiantFaker
TYPE_INTEGER 'integer' schmunk42\giiant\helpers\GiiantFaker
TYPE_NUMBER 'number' schmunk42\giiant\helpers\GiiantFaker
TYPE_STRING 'string' schmunk42\giiant\helpers\GiiantFaker
TYPE_TIME 'time' schmunk42\giiant\helpers\GiiantFaker
TYPE_TIMESTAMP 'timestamp' schmunk42\giiant\helpers\GiiantFaker

Method Details

boolean() public static method

public static mixed boolean ( )
create() public static method

Returns new instance of Faker generator class.

public static \Faker\Generator create ( )
date() public static method

public static mixed date ( $format null )
$format null
  • Custom format
datetime() public static method

public static mixed datetime ( $format null )
$format null
  • Custom format
integer() public static method

public static mixed integer ( $methodName '' )
$methodName string

Model's attribute type trying to match Faker's method name

number() public static method

public static mixed number ( $methodName '' )
$methodName string

Model's attribute type trying to match Faker's method name

provider() public static method

Tries to execute Faker's provider methods like email, address, title etc, if method is found.

public static void provider ( $type self::TYPE_STRING, $methodName '', $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 method

public static mixed string ( $methodName '' )
$methodName string

Model's attribute type trying to match Faker's method name

time() public static method

public static mixed time ( $format null )
$format null
  • Custom format
timestamp() public static method

public static mixed timestamp ( $format null )
$format null
  • Custom format
value() public static method

Returns Faker value.

public static mixed value ( $type self::TYPE_STRING, $methodName '', $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