1 | <?php |
||
12 | class EventHandler |
||
13 | { |
||
14 | /** |
||
15 | * @var \Spatie\Backup\Notifications\Notifier |
||
16 | */ |
||
17 | protected $notifier; |
||
18 | |||
19 | public function __construct() |
||
25 | |||
26 | public function whenBackupWasSuccessful() |
||
30 | |||
31 | /** |
||
32 | * @param \Spatie\Backup\Events\BackupHasFailed $event |
||
33 | */ |
||
34 | public function whenBackupHasFailed(BackupHasFailed $event) |
||
38 | |||
39 | /** |
||
40 | * @param \Spatie\Backup\Events\CleanupWasSuccessful $event |
||
41 | */ |
||
42 | public function whenCleanupWasSuccessful(CleanupWasSuccessFul $event) |
||
46 | |||
47 | /** |
||
48 | * @param \Spatie\Backup\Events\CleanupHasFailed $event |
||
49 | */ |
||
50 | public function whenCleanupHasFailed(CleanupHasFailed $event) |
||
54 | |||
55 | /** |
||
56 | * @param \Spatie\Backup\Events\HealthyBackupWasFound $event |
||
57 | */ |
||
58 | public function whenHealthyBackupWasFound(HealthyBackupWasFound $event) |
||
62 | |||
63 | /** |
||
64 | * @param \Spatie\Backup\Events\UnhealthyBackupWasFound $event |
||
65 | */ |
||
66 | public function whenUnhealthyBackupWasFound(UnhealthyBackupWasFound $event) |
||
70 | |||
71 | /** |
||
72 | * Register the listeners for the subscriber. |
||
73 | * |
||
74 | * @param \Illuminate\Events\Dispatcher $events |
||
75 | * |
||
76 | * @return array |
||
77 | */ |
||
78 | public function subscribe($events) |
||
115 | } |
||
116 |