Fakerino\Core\FakeDataFactory::fakeTable PHP Method

fakeTable() public method

Fills the given table with fake data.
public fakeTable ( string | null $tableName = null ) : array
$tableName string | null
return array $rows
    public function fakeTable($tableName = null)
    {
        if (null === $tableName) {
            throw new MissingRequiredOptionException('table name');
        }
        $dbFiller = new DbFiller($this->db, $tableName, $this, $this->num);
        $rows = $dbFiller->fill();
        return $rows;
    }