PHP Class Fakerino\Core\Filler\DbFiller

Author: Nicola Pietroluongo ([email protected])
Inheritance: implements Fakerino\Core\Filler\FillerInterface
Show file Open project: fakerino/fakerino Class Usage Examples

Public Methods

Method Description
__construct ( Fakerino\Core\Database\DbInterface $db, string $tableName, FakeDataFactory $faker, integer $num = 1 )
fill ( ) : array Fills the tablename with fake value.

Private Methods

Method Description
fakeColumn ( $fakeName, $fakeType, $maxLength )

Method Details

__construct() public method

public __construct ( Fakerino\Core\Database\DbInterface $db, string $tableName, FakeDataFactory $faker, integer $num = 1 )
$db Fakerino\Core\Database\DbInterface
$tableName string
$faker Fakerino\Core\FakeDataFactory
$num integer

fill() public method

Fills the tablename with fake value.
public fill ( ) : array
return array