1 | <?php |
||
27 | final class BackupEvent extends GenericEvent |
||
28 | { |
||
29 | 26 | public function __construct($subject = null, ProfileInterface $profile = null, BackupInterface $backup = null, WorkflowActivityInterface $activity = null) |
|
37 | |||
38 | /** |
||
39 | * Get activity which dispatched the event. |
||
40 | * |
||
41 | * @return WorkflowActivityInterface|null |
||
42 | */ |
||
43 | public function getActivity() |
||
47 | |||
48 | /** |
||
49 | * Get current processing profile. |
||
50 | * |
||
51 | * @return ProfileInterface|null |
||
52 | */ |
||
53 | 2 | public function getProfile() |
|
54 | { |
||
55 | 2 | return $this->getArgument('profile'); |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * Get current processing backup. |
||
60 | * |
||
61 | * @return BackupInterface|null |
||
62 | */ |
||
63 | 14 | public function getBackup() |
|
67 | } |
||
68 |