1 | <?php |
||
21 | class Crypter extends Abstraction |
||
22 | { |
||
23 | /** |
||
24 | * Execute or simulate the encryption. |
||
25 | * |
||
26 | * @param \phpbu\App\Backup\Crypter $crypter |
||
27 | * @param \phpbu\App\Backup\Target $target |
||
28 | * @param \phpbu\App\Result $result |
||
29 | * @throws \phpbu\App\Exception |
||
30 | */ |
||
31 | public function run(CrypterExe $crypter, Target $target, Result $result) |
||
40 | |||
41 | /** |
||
42 | * Execute the encryption. |
||
43 | * |
||
44 | * @param \phpbu\App\Backup\Crypter $crypter |
||
45 | * @param \phpbu\App\Backup\Target $target |
||
46 | * @param \phpbu\App\Result $result |
||
47 | * @throws \phpbu\App\Exception |
||
48 | */ |
||
49 | protected function crypt(CrypterExe $crypter, Target $target, Result $result) |
||
53 | |||
54 | /** |
||
55 | * Simulate the encryption. |
||
56 | * |
||
57 | * @param \phpbu\App\Backup\Crypter $crypter |
||
58 | * @param \phpbu\App\Backup\Target $target |
||
59 | * @param \phpbu\App\Result $result |
||
60 | * @throws \phpbu\App\Exception |
||
61 | */ |
||
62 | protected function simulate(CrypterExe $crypter, Target $target, Result $result) |
||
68 | } |
||
69 |