Doctrine\DBAL\Migrations\SqlFileWriter::__construct PHP Method

__construct() public method

public __construct ( string $migrationsColumnName, string $migrationsTableName, string $destPath, Doctrine\DBAL\Migrations\OutputWriter $outputWriter = null )
$migrationsColumnName string
$migrationsTableName string
$destPath string
$outputWriter Doctrine\DBAL\Migrations\OutputWriter
    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;
    }