Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | class DatabaseBackupRestorer |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $dbProcessors = [ |
||
19 | 'mysql' => MysqlProcessor::class, |
||
20 | 'pgsql' => PostgresProcessor::class, |
||
21 | ]; |
||
22 | /** |
||
23 | * @var DbProcessor |
||
24 | */ |
||
25 | protected $dbProcessor; |
||
26 | |||
27 | /** |
||
28 | * DatabaseBackupMaker constructor. |
||
29 | * @param string $backupFilePath |
||
30 | * @param Connection $connection |
||
31 | * @throws Exception |
||
32 | */ |
||
33 | public function __construct(string $backupFilePath, Connection $connection) |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return bool |
||
44 | * @throws \Exception |
||
45 | */ |
||
46 | public function backup() |
||
51 |