Skip to content

Commit

Permalink
Added missing abstract dumpToFile-method
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 31, 2016
1 parent 0018d1b commit 2869486
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All Notable changes to `db-dumper` will be documented in this file

## 1.0.2 - 2016-02-01

- Added missing abstract `dumpToFile`-method

## 1.0.1 - 2016-01-19

- Fixed typo in `checkIfDumpWasSuccessFul`-method name
Expand Down
2 changes: 1 addition & 1 deletion src/Databases/MySql.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function dontUseExtendedInserts() : MySql
return $this;
}

/**
/*
* Dump the contents of the database to the given file.
*/
public function dumpToFile(string $dumpFile)
Expand Down
5 changes: 5 additions & 0 deletions src/DbDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public static function create()
return new static();
}

/*
* Dump the contents of the database to the given file.
*/
abstract public function dumpToFile(string $dumpFile);

protected function checkIfDumpWasSuccessFul(Process $process, string $outputFile) : bool
{
if (!$process->isSuccessful()) {
Expand Down

0 comments on commit 2869486

Please sign in to comment.