| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __construct(string $backupFilePath, string $targetFolder, $io = IOPriority::IDLE) |
||
| 31 | { |
||
| 32 | if (!file_exists($backupFilePath)) |
||
| 33 | throw new Exception("Backup file don`t exist.."); |
||
| 34 | |||
| 35 | if (!file_exists($targetFolder)) |
||
| 36 | throw new Exception("Target folder don`t exist."); |
||
| 37 | |||
| 38 | $this->backupFilePath = $backupFilePath; |
||
| 39 | $this->targetFolder = $targetFolder; |
||
| 40 | |||
| 41 | $this->module = Yii::$app->getModule('backup'); |
||
| 42 | $this->io = $io; |
||
|
|
|||
| 43 | } |
||
| 58 |