PHP Interface Fakerino\Core\FakeDataFactoryInterface

Author: Nicola Pietroluongo ([email protected])
Afficher le fichier Open project: fakerino/fakerino

Méthodes publiques

Méthode Description
__toString ( ) : string
fake ( string | array | null $elementName = null ) : FakeDataFactory Setups the fake element and initializes the output.
fakeEntity ( object | null $entity = null ) : boolean Fills the given entity with fake data.
fakeTable ( string | null $tableName = null ) : array Fills the given table with fake data.
fakeTemplate ( string $file ) : string Fakes a template file.
num ( integer $num = 1 ) : FakeDataFactory Sets $num for iterate the fake process.
seed ( integer | null $seed = null ) : FakeDataFactory
toArray ( ) : array
toJson ( ) : string

Method Details

__toString() public méthode

public __toString ( ) : string
Résultat string

fake() public méthode

Setups the fake element and initializes the output.
public fake ( string | array | null $elementName = null ) : FakeDataFactory
$elementName string | array | null
Résultat FakeDataFactory $this

fakeEntity() public méthode

Fills the given entity with fake data.
public fakeEntity ( object | null $entity = null ) : boolean
$entity object | null
Résultat boolean

fakeTable() public méthode

Fills the given table with fake data.
public fakeTable ( string | null $tableName = null ) : array
$tableName string | null
Résultat array $rows

fakeTemplate() public méthode

Fakes a template file.
public fakeTemplate ( string $file ) : string
$file string
Résultat string

num() public méthode

Sets $num for iterate the fake process.
public num ( integer $num = 1 ) : FakeDataFactory
$num integer
Résultat FakeDataFactory $this

seed() public méthode

public seed ( integer | null $seed = null ) : FakeDataFactory
$seed integer | null
Résultat FakeDataFactory $this

toArray() public méthode

public toArray ( ) : array
Résultat array

toJson() public méthode

public toJson ( ) : string
Résultat string json