1 | <?php |
||
23 | class Capacity extends Abstraction implements Simulator |
||
24 | { |
||
25 | /** |
||
26 | * Original XML value |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $capacityRaw; |
||
31 | |||
32 | /** |
||
33 | * Capacity in bytes. |
||
34 | * |
||
35 | * @var mixed <integer|double> |
||
36 | */ |
||
37 | protected $capacityBytes; |
||
38 | |||
39 | /** |
||
40 | * Delete current backup as well |
||
41 | * |
||
42 | * @var boolean |
||
43 | */ |
||
44 | protected $deleteTarget; |
||
45 | |||
46 | /** |
||
47 | * Setup the the Cleaner. |
||
48 | * |
||
49 | * @see \phpbu\App\Backup\Cleanup::setup() |
||
50 | * @param array $options |
||
51 | * @throws \phpbu\App\Backup\Cleaner\Exception |
||
52 | */ |
||
53 | public function setup(array $options) |
||
69 | 5 | ||
70 | /** |
||
71 | * Return list of files to delete. |
||
72 | * |
||
73 | * @param \phpbu\App\Backup\Target $target |
||
74 | * @param \phpbu\App\Backup\Collector $collector |
||
75 | * @return \phpbu\App\Backup\File[] |
||
76 | * @throws \phpbu\App\Exception |
||
77 | */ |
||
78 | protected function getFilesToDelete(Target $target, Collector $collector) |
||
109 | } |
||
110 |