1 | <?php |
||
17 | class Status |
||
18 | { |
||
19 | /** |
||
20 | * Source handles compression by itself. |
||
21 | * |
||
22 | * @var boolean |
||
23 | */ |
||
24 | private $handledCompression; |
||
25 | |||
26 | /** |
||
27 | * Path to generated source data. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | private $dataPath; |
||
32 | |||
33 | /** |
||
34 | * Constructor |
||
35 | */ |
||
36 | 12 | public function __construct() |
|
40 | |||
41 | /** |
||
42 | * Source doesn't handle compression. |
||
43 | * |
||
44 | * @param string $path |
||
45 | * @return \phpbu\App\Backup\Source\Status |
||
46 | 8 | */ |
|
47 | public function uncompressed($path) |
||
53 | |||
54 | /** |
||
55 | * Did the Source handle the compression. |
||
56 | * |
||
57 | 9 | * @return boolean |
|
58 | */ |
||
59 | 9 | public function handledCompression() |
|
63 | |||
64 | /** |
||
65 | * Return data location. |
||
66 | * |
||
67 | * @return string |
||
68 | 8 | * @throws \phpbu\App\Exception |
|
69 | */ |
||
70 | 8 | public function getDataPath() |
|
77 | |||
78 | /** |
||
79 | * Static constructor for fluent interface calls. |
||
80 | 3 | * |
|
81 | * @return \phpbu\App\Backup\Source\Status |
||
82 | 3 | */ |
|
83 | 1 | public static function create() |
|
87 | } |
||
88 |