| Total Complexity | 8 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 58.62% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class SqliteDumper extends Dumper |
||
| 8 | { |
||
| 9 | public function dump(string $destinationPath = "") |
||
| 10 | { |
||
| 11 | $destinationPath = !empty($destinationPath) ? '"' . $destinationPath . '"' : '"' . $this->destinationPath . '"'; |
||
| 12 | $dumpCommand = $this->prepareDumpCommand($destinationPath); |
||
| 13 | $this->command = $this->removeExtraSpaces($dumpCommand); |
||
| 14 | $this->run(); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function restore(string $restorePath = "") |
||
| 23 | } |
||
| 24 | |||
| 25 | 8 | protected function prepareDumpCommand(string $destinationPath): string |
|
| 39 | } |
||
| 40 | |||
| 41 | 8 | protected function prepareRestoreCommand(string $filePath): string |
|
| 56 |