19 declare(strict_types=1);
    40         if (!is_null($this->export_hooks_path) && !is_readable($this->export_hooks_path)) {
    41             throw new Exception(
"Export hooks file '$this->export_hooks_path' is not readable.");
    45             $dumper = 
new Ifsnop\Mysqldump\Mysqldump(
    46                 "mysql:host=$host;port=$port;dbname=$name",
    49                 [
'add-drop-table' => 
true]
    51             if (!is_null($this->export_hooks_path)) {
    54             $dumper->start($target . 
"/" . self::FILE_NAME);
    56             throw new Exception(
"Error during sql dump: " . $e->getMessage());
 createDump(string $host, string $user, string $password, string $name, string $port, string $target)
 
__construct(?string $export_hooks_path)
 
string $export_hooks_path