Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function __construct(string $backupFilePath, string $targetFolder, $io = IOPriority::IDLE) |
||
37 | { |
||
38 | if (file_exists($backupFilePath)) |
||
39 | throw new Exception("Backup file exists."); |
||
40 | |||
41 | if (!file_exists($targetFolder)) |
||
42 | throw new Exception("Target folder not exists."); |
||
43 | |||
44 | $this->module = Yii::$app->getModule('backup'); |
||
45 | $this->backupFilePath = $backupFilePath; |
||
46 | $this->targetFolder = $targetFolder; |
||
47 | $this->io = $io; |
||
48 | } |
||
70 |