| 1 | <?php namespace Arcanesoft\Backups\Services; |
||
| 14 | class BackupStatuses |
||
| 15 | { |
||
| 16 | /* ----------------------------------------------------------------- |
||
| 17 | | Main Methods |
||
| 18 | | ----------------------------------------------------------------- |
||
| 19 | */ |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get all the statuses. |
||
| 23 | * |
||
| 24 | * @return \Illuminate\Support\Collection |
||
| 25 | */ |
||
| 26 | public static function all() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get a status by index. |
||
| 33 | * |
||
| 34 | * @param int $index |
||
| 35 | * |
||
| 36 | * @return \Spatie\Backup\Tasks\Monitor\BackupDestinationStatus|null |
||
| 37 | */ |
||
| 38 | public static function getStatus($index) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Run the backups. |
||
| 45 | * |
||
| 46 | * @param string|null $disk |
||
| 47 | * |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | public static function runBackups($disk = null) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Clean the backups. |
||
| 70 | * |
||
| 71 | * @return bool |
||
| 72 | */ |
||
| 73 | public static function clearBackups() |
||
| 92 | } |
||
| 93 |