public function dumpToFile(string $dumpFile)
{
$command = $this->getDumpCommand($dumpFile);
$process = new Process($command);
if (!is_null($this->timeout)) {
$process->setTimeout($this->timeout);
}
$process->run();
$this->checkIfDumpWasSuccessFul($process, $dumpFile);
}