class FileQueryWriter implements QueryWriter (View source)

The FileQueryWriter class is responsible for writing migration SQL queries to a file on disk.

Methods

__construct(OutputWriter $outputWriter, FileBuilder $migrationFileBuilder)

No description

write(string $path, string $direction, array $queriesByVersion, DateTimeInterface|null $now = null)

No description

Details

__construct(OutputWriter $outputWriter, FileBuilder $migrationFileBuilder)

Parameters

OutputWriter $outputWriter
FileBuilder $migrationFileBuilder

write(string $path, string $direction, array $queriesByVersion, DateTimeInterface|null $now = null)

Parameters

string $path
string $direction
array $queriesByVersion
DateTimeInterface|null $now