Fakerino\Core\Filler\DbFiller::__construct PHP Метод

__construct() публичный Метод

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
    public function __construct(DbInterface $db, $tableName, FakeDataFactory $faker, $num = 1)
    {
        $this->db = $db;
        $this->faker = $faker;
        $db->connect();
        $db->setTable($tableName);
        $this->num = $num;
    }