| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | public function __construct(string $backupFilePath, Connection $connection) |
||
| 34 | { |
||
| 35 | if (file_exists($backupFilePath)) |
||
| 36 | throw new Exception("Backup file exists."); |
||
| 37 | |||
| 38 | $currentProcessorClassname = $this->dbProcessors[$connection->driverName]; |
||
| 39 | $this->dbProcessor = new $currentProcessorClassname($backupFilePath, $connection); |
||
| 40 | } |
||
| 51 |