@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | $this->database_dump_filename = $database_dump_filename; |
20 | 20 | } |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $type |
|
24 | + */ |
|
22 | 25 | public function set_type( $type ) { |
23 | 26 | $this->type = $type; |
24 | 27 | } |
@@ -169,7 +172,6 @@ discard block |
||
169 | 172 | * issues with the backup process. |
170 | 173 | * |
171 | 174 | * @param string $context The context for the warning. |
172 | - * @param string $error The warning that was encountered. |
|
173 | 175 | */ |
174 | 176 | public function warning( $context, $warning ) { |
175 | 177 |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * |
158 | 158 | * @param string $message |
159 | 159 | * |
160 | - * @return null |
|
160 | + * @return boolean |
|
161 | 161 | */ |
162 | 162 | public function set_status( $message ) { |
163 | 163 | |
@@ -210,6 +210,9 @@ discard block |
||
210 | 210 | return Path::get_path() . '/.backup-' . $this->id . '-running'; |
211 | 211 | } |
212 | 212 | |
213 | + /** |
|
214 | + * @param \Closure $callback |
|
215 | + */ |
|
213 | 216 | public function set_status_callback( $callback ) { |
214 | 217 | $this->callback = $callback; |
215 | 218 | } |