public function __construct($migrationsColumnName, $migrationsTableName, $destPath, OutputWriter $outputWriter = null)
{
if (empty($migrationsColumnName)) {
$this->throwInvalidArgumentException('Migrations column name cannot be empty.');
}
$this->migrationsColumnName = $migrationsColumnName;
if (empty($migrationsTableName)) {
$this->throwInvalidArgumentException('Migrations table name cannot be empty.');
}
$this->migrationsTableName = $migrationsTableName;
if (empty($destPath)) {
$this->throwInvalidArgumentException('Destination file must be specified.');
}
$this->destPath = $destPath;
$this->outputWriter = $outputWriter;
}