From 9c5e9aa136e8bd118e221ba0832d7638b0b031b2 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Fri, 3 Feb 2017 22:20:15 +0000 Subject: [PATCH] Added string version of all events for action tracking --- .../Events/Beacon/BeaconFailedToSendEvent.php | 10 +++++++++- app/Bus/Events/Beacon/BeaconWasSentEvent.php | 10 +++++++++- .../Component/ComponentStatusWasUpdatedEvent.php | 10 ++++++++++ .../Events/Component/ComponentWasAddedEvent.php | 10 ++++++++++ .../Component/ComponentWasRemovedEvent.php | 10 ++++++++++ .../Component/ComponentWasUpdatedEvent.php | 16 ++++++++++++++++ .../ComponentGroupWasAddedEvent.php | 10 ++++++++++ .../ComponentGroupWasRemovedEvent.php | 10 ++++++++++ .../ComponentGroupWasUpdatedEvent.php | 10 ++++++++++ .../Events/Incident/IncidentWasRemovedEvent.php | 10 ++++++++++ .../Events/Incident/IncidentWasReportedEvent.php | 10 ++++++++++ .../Events/Incident/IncidentWasUpdatedEvent.php | 10 ++++++++++ .../IncidentUpdateWasRemovedEvent.php | 10 ++++++++++ .../IncidentUpdateWasReportedEvent.php | 10 ++++++++++ .../IncidentUpdateWasUpdatedEvent.php | 10 ++++++++++ app/Bus/Events/Invite/InviteWasClaimedEvent.php | 10 ++++++++++ .../Events/Metric/MetricPointWasAddedEvent.php | 10 ++++++++++ .../Events/Metric/MetricPointWasRemovedEvent.php | 10 ++++++++++ .../Events/Metric/MetricPointWasUpdatedEvent.php | 10 ++++++++++ app/Bus/Events/Metric/MetricWasAddedEvent.php | 10 ++++++++++ app/Bus/Events/Metric/MetricWasRemovedEvent.php | 10 ++++++++++ app/Bus/Events/Metric/MetricWasUpdatedEvent.php | 10 ++++++++++ .../Events/Schedule/ScheduleWasCreatedEvent.php | 10 ++++++++++ .../Events/Schedule/ScheduleWasRemovedEvent.php | 10 ++++++++++ .../Events/Schedule/ScheduleWasUpdatedEvent.php | 10 ++++++++++ .../Subscriber/SubscriberHasSubscribedEvent.php | 10 ++++++++++ .../SubscriberHasUnsubscribedEvent.php | 10 ++++++++++ .../SubscriberHasUpdatedSubscriptionsEvent.php | 10 ++++++++++ .../Subscriber/SubscriberHasVerifiedEvent.php | 10 ++++++++++ .../System/SystemCheckedForUpdatesEvent.php | 10 +++++++++- .../Events/System/SystemWasInstalledEvent.php | 10 +++++++++- app/Bus/Events/System/SystemWasResetEvent.php | 10 +++++++++- app/Bus/Events/System/SystemWasUpdatedEvent.php | 10 +++++++++- app/Bus/Events/User/UserAcceptedInviteEvent.php | 10 ++++++++++ app/Bus/Events/User/UserDisabledTwoAuthEvent.php | 10 ++++++++++ app/Bus/Events/User/UserEnabledTwoAuthEvent.php | 10 ++++++++++ app/Bus/Events/User/UserFailedTwoAuthEvent.php | 10 ++++++++++ app/Bus/Events/User/UserLoggedInEvent.php | 10 ++++++++++ app/Bus/Events/User/UserLoggedOutEvent.php | 10 ++++++++++ app/Bus/Events/User/UserPassedTwoAuthEvent.php | 10 ++++++++++ .../Events/User/UserRegeneratedApiTokenEvent.php | 10 ++++++++++ app/Bus/Events/User/UserWasAddedEvent.php | 10 ++++++++++ app/Bus/Events/User/UserWasInvitedEvent.php | 10 ++++++++++ app/Bus/Events/User/UserWasRemovedEvent.php | 10 ++++++++++ app/Bus/Events/User/UserWasWelcomedEvent.php | 10 ++++++++++ 45 files changed, 450 insertions(+), 6 deletions(-) diff --git a/app/Bus/Events/Beacon/BeaconFailedToSendEvent.php b/app/Bus/Events/Beacon/BeaconFailedToSendEvent.php index 53ed3eefe5c1..932dab30d9d1 100644 --- a/app/Bus/Events/Beacon/BeaconFailedToSendEvent.php +++ b/app/Bus/Events/Beacon/BeaconFailedToSendEvent.php @@ -18,5 +18,13 @@ */ final class BeaconFailedToSendEvent implements BeaconEventInterface { - // + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Beacon failed to send.'; + } } diff --git a/app/Bus/Events/Beacon/BeaconWasSentEvent.php b/app/Bus/Events/Beacon/BeaconWasSentEvent.php index 1d485328be71..919f338f9c97 100644 --- a/app/Bus/Events/Beacon/BeaconWasSentEvent.php +++ b/app/Bus/Events/Beacon/BeaconWasSentEvent.php @@ -18,5 +18,13 @@ */ final class BeaconWasSentEvent implements BeaconEventInterface { - // + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Beacon was sent.'; + } } diff --git a/app/Bus/Events/Component/ComponentStatusWasUpdatedEvent.php b/app/Bus/Events/Component/ComponentStatusWasUpdatedEvent.php index 446463a572f6..9450073d8eb9 100644 --- a/app/Bus/Events/Component/ComponentStatusWasUpdatedEvent.php +++ b/app/Bus/Events/Component/ComponentStatusWasUpdatedEvent.php @@ -56,4 +56,14 @@ public function __construct(Component $component, $original_status, $new_status) $this->original_status = $original_status; $this->new_status = $new_status; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Component status was updated.'; + } } diff --git a/app/Bus/Events/Component/ComponentWasAddedEvent.php b/app/Bus/Events/Component/ComponentWasAddedEvent.php index 7c892a78f83d..78097bf61faa 100644 --- a/app/Bus/Events/Component/ComponentWasAddedEvent.php +++ b/app/Bus/Events/Component/ComponentWasAddedEvent.php @@ -33,4 +33,14 @@ public function __construct(Component $component) { $this->component = $component; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Component was added.'; + } } diff --git a/app/Bus/Events/Component/ComponentWasRemovedEvent.php b/app/Bus/Events/Component/ComponentWasRemovedEvent.php index f44839d347a8..bb78015b36a5 100644 --- a/app/Bus/Events/Component/ComponentWasRemovedEvent.php +++ b/app/Bus/Events/Component/ComponentWasRemovedEvent.php @@ -33,4 +33,14 @@ public function __construct(Component $component) { $this->component = $component; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Component was removed.'; + } } diff --git a/app/Bus/Events/Component/ComponentWasUpdatedEvent.php b/app/Bus/Events/Component/ComponentWasUpdatedEvent.php index b58572513421..1b46c16aff16 100644 --- a/app/Bus/Events/Component/ComponentWasUpdatedEvent.php +++ b/app/Bus/Events/Component/ComponentWasUpdatedEvent.php @@ -13,6 +13,12 @@ use CachetHQ\Cachet\Models\Component; +/** + * This is the component was updated event class. + * + * @author James Brooks + * @author Graham Campbell + */ final class ComponentWasUpdatedEvent implements ComponentEventInterface { /** @@ -33,4 +39,14 @@ public function __construct(Component $component) { $this->component = $component; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Component was updated.'; + } } diff --git a/app/Bus/Events/ComponentGroup/ComponentGroupWasAddedEvent.php b/app/Bus/Events/ComponentGroup/ComponentGroupWasAddedEvent.php index 2d8479fe3f1b..6ea377de1270 100644 --- a/app/Bus/Events/ComponentGroup/ComponentGroupWasAddedEvent.php +++ b/app/Bus/Events/ComponentGroup/ComponentGroupWasAddedEvent.php @@ -33,4 +33,14 @@ public function __construct(ComponentGroup $group) { $this->group = $group; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Component Group was added.'; + } } diff --git a/app/Bus/Events/ComponentGroup/ComponentGroupWasRemovedEvent.php b/app/Bus/Events/ComponentGroup/ComponentGroupWasRemovedEvent.php index 275449cef38f..ac2d3b56f725 100644 --- a/app/Bus/Events/ComponentGroup/ComponentGroupWasRemovedEvent.php +++ b/app/Bus/Events/ComponentGroup/ComponentGroupWasRemovedEvent.php @@ -33,4 +33,14 @@ public function __construct(ComponentGroup $group) { $this->group = $group; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Component Group was removed.'; + } } diff --git a/app/Bus/Events/ComponentGroup/ComponentGroupWasUpdatedEvent.php b/app/Bus/Events/ComponentGroup/ComponentGroupWasUpdatedEvent.php index 19138f75c5bc..ab0ae77a896c 100644 --- a/app/Bus/Events/ComponentGroup/ComponentGroupWasUpdatedEvent.php +++ b/app/Bus/Events/ComponentGroup/ComponentGroupWasUpdatedEvent.php @@ -33,4 +33,14 @@ public function __construct(ComponentGroup $group) { $this->group = $group; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Component Group was updated.'; + } } diff --git a/app/Bus/Events/Incident/IncidentWasRemovedEvent.php b/app/Bus/Events/Incident/IncidentWasRemovedEvent.php index ef6890b03ed9..0d46616aa73a 100644 --- a/app/Bus/Events/Incident/IncidentWasRemovedEvent.php +++ b/app/Bus/Events/Incident/IncidentWasRemovedEvent.php @@ -33,4 +33,14 @@ public function __construct(Incident $incident) { $this->incident = $incident; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Incident was removed.'; + } } diff --git a/app/Bus/Events/Incident/IncidentWasReportedEvent.php b/app/Bus/Events/Incident/IncidentWasReportedEvent.php index b361a4d4c5f0..d608199c4fb6 100644 --- a/app/Bus/Events/Incident/IncidentWasReportedEvent.php +++ b/app/Bus/Events/Incident/IncidentWasReportedEvent.php @@ -42,4 +42,14 @@ public function __construct(Incident $incident, $notify = false) $this->incident = $incident; $this->notify = $notify; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Incident was reported.'; + } } diff --git a/app/Bus/Events/Incident/IncidentWasUpdatedEvent.php b/app/Bus/Events/Incident/IncidentWasUpdatedEvent.php index 251bc781bebe..c4a6ba552246 100644 --- a/app/Bus/Events/Incident/IncidentWasUpdatedEvent.php +++ b/app/Bus/Events/Incident/IncidentWasUpdatedEvent.php @@ -33,4 +33,14 @@ public function __construct(Incident $incident) { $this->incident = $incident; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Incident was updated.'; + } } diff --git a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasRemovedEvent.php b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasRemovedEvent.php index 1fba40aeca55..e9096c17fba1 100644 --- a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasRemovedEvent.php +++ b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasRemovedEvent.php @@ -38,4 +38,14 @@ public function __construct(IncidentUpdate $update) { $this->update = $update; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Incident Update was removed.'; + } } diff --git a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasReportedEvent.php b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasReportedEvent.php index e2cf892887c3..886eea2a75f7 100644 --- a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasReportedEvent.php +++ b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasReportedEvent.php @@ -38,4 +38,14 @@ public function __construct(IncidentUpdate $update) { $this->update = $update; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Incident Update was reported.'; + } } diff --git a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasUpdatedEvent.php b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasUpdatedEvent.php index 042b3af71225..381f1a6e5b17 100644 --- a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasUpdatedEvent.php +++ b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasUpdatedEvent.php @@ -38,4 +38,14 @@ public function __construct(IncidentUpdate $update) { $this->update = $update; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Incident Update was updated.'; + } } diff --git a/app/Bus/Events/Invite/InviteWasClaimedEvent.php b/app/Bus/Events/Invite/InviteWasClaimedEvent.php index b8a3c77d246a..02f950ee52df 100644 --- a/app/Bus/Events/Invite/InviteWasClaimedEvent.php +++ b/app/Bus/Events/Invite/InviteWasClaimedEvent.php @@ -31,4 +31,14 @@ public function __construct(Invite $invite) { $this->invite = $invite; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Invite was claimed.'; + } } diff --git a/app/Bus/Events/Metric/MetricPointWasAddedEvent.php b/app/Bus/Events/Metric/MetricPointWasAddedEvent.php index 7de09cf24fb7..ca5a7f58df74 100644 --- a/app/Bus/Events/Metric/MetricPointWasAddedEvent.php +++ b/app/Bus/Events/Metric/MetricPointWasAddedEvent.php @@ -33,4 +33,14 @@ public function __construct(MetricPoint $metricPoint) { $this->metricPoint = $metricPoint; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Metric Point was added.'; + } } diff --git a/app/Bus/Events/Metric/MetricPointWasRemovedEvent.php b/app/Bus/Events/Metric/MetricPointWasRemovedEvent.php index 2d0b76ee341b..34d126bb42fe 100644 --- a/app/Bus/Events/Metric/MetricPointWasRemovedEvent.php +++ b/app/Bus/Events/Metric/MetricPointWasRemovedEvent.php @@ -33,4 +33,14 @@ public function __construct(MetricPoint $metricPoint) { $this->metricPoint = $metricPoint; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Metric Point was removed.'; + } } diff --git a/app/Bus/Events/Metric/MetricPointWasUpdatedEvent.php b/app/Bus/Events/Metric/MetricPointWasUpdatedEvent.php index 35e97f5d543b..5361681bbc6c 100644 --- a/app/Bus/Events/Metric/MetricPointWasUpdatedEvent.php +++ b/app/Bus/Events/Metric/MetricPointWasUpdatedEvent.php @@ -33,4 +33,14 @@ public function __construct(MetricPoint $metricPoint) { $this->metricPoint = $metricPoint; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Metric Point was updated.'; + } } diff --git a/app/Bus/Events/Metric/MetricWasAddedEvent.php b/app/Bus/Events/Metric/MetricWasAddedEvent.php index 9d495c6eff92..f0abdbf36848 100644 --- a/app/Bus/Events/Metric/MetricWasAddedEvent.php +++ b/app/Bus/Events/Metric/MetricWasAddedEvent.php @@ -33,4 +33,14 @@ public function __construct(Metric $metric) { $this->metric = $metric; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Metric was added.'; + } } diff --git a/app/Bus/Events/Metric/MetricWasRemovedEvent.php b/app/Bus/Events/Metric/MetricWasRemovedEvent.php index 67061cf11d61..5777e8051d22 100644 --- a/app/Bus/Events/Metric/MetricWasRemovedEvent.php +++ b/app/Bus/Events/Metric/MetricWasRemovedEvent.php @@ -33,4 +33,14 @@ public function __construct(Metric $metric) { $this->metric = $metric; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Metric was removed.'; + } } diff --git a/app/Bus/Events/Metric/MetricWasUpdatedEvent.php b/app/Bus/Events/Metric/MetricWasUpdatedEvent.php index dd400eb33af9..3850aae00b4f 100644 --- a/app/Bus/Events/Metric/MetricWasUpdatedEvent.php +++ b/app/Bus/Events/Metric/MetricWasUpdatedEvent.php @@ -33,4 +33,14 @@ public function __construct(Metric $metric) { $this->metric = $metric; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Metric was updated.'; + } } diff --git a/app/Bus/Events/Schedule/ScheduleWasCreatedEvent.php b/app/Bus/Events/Schedule/ScheduleWasCreatedEvent.php index 32032543c79d..eea2a7a2ce85 100644 --- a/app/Bus/Events/Schedule/ScheduleWasCreatedEvent.php +++ b/app/Bus/Events/Schedule/ScheduleWasCreatedEvent.php @@ -38,4 +38,14 @@ public function __construct(Schedule $schedule) { $this->schedule = $schedule; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Schedule was created.'; + } } diff --git a/app/Bus/Events/Schedule/ScheduleWasRemovedEvent.php b/app/Bus/Events/Schedule/ScheduleWasRemovedEvent.php index 1f474afab735..07dcb047e102 100644 --- a/app/Bus/Events/Schedule/ScheduleWasRemovedEvent.php +++ b/app/Bus/Events/Schedule/ScheduleWasRemovedEvent.php @@ -38,4 +38,14 @@ public function __construct(Schedule $schedule) { $this->schedule = $schedule; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Schedule was removed.'; + } } diff --git a/app/Bus/Events/Schedule/ScheduleWasUpdatedEvent.php b/app/Bus/Events/Schedule/ScheduleWasUpdatedEvent.php index 1953a7349da9..066eb4b19662 100644 --- a/app/Bus/Events/Schedule/ScheduleWasUpdatedEvent.php +++ b/app/Bus/Events/Schedule/ScheduleWasUpdatedEvent.php @@ -38,4 +38,14 @@ public function __construct(Schedule $schedule) { $this->schedule = $schedule; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Schedule was updated.'; + } } diff --git a/app/Bus/Events/Subscriber/SubscriberHasSubscribedEvent.php b/app/Bus/Events/Subscriber/SubscriberHasSubscribedEvent.php index c48668f53e68..2dc68624d195 100644 --- a/app/Bus/Events/Subscriber/SubscriberHasSubscribedEvent.php +++ b/app/Bus/Events/Subscriber/SubscriberHasSubscribedEvent.php @@ -33,4 +33,14 @@ public function __construct(Subscriber $subscriber) { $this->subscriber = $subscriber; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Subscriber has subscribed.'; + } } diff --git a/app/Bus/Events/Subscriber/SubscriberHasUnsubscribedEvent.php b/app/Bus/Events/Subscriber/SubscriberHasUnsubscribedEvent.php index 2d35fc2a3ee0..4e67f5c88837 100644 --- a/app/Bus/Events/Subscriber/SubscriberHasUnsubscribedEvent.php +++ b/app/Bus/Events/Subscriber/SubscriberHasUnsubscribedEvent.php @@ -33,4 +33,14 @@ public function __construct(Subscriber $subscriber) { $this->subscriber = $subscriber; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Subscriber has unsubscribed.'; + } } diff --git a/app/Bus/Events/Subscriber/SubscriberHasUpdatedSubscriptionsEvent.php b/app/Bus/Events/Subscriber/SubscriberHasUpdatedSubscriptionsEvent.php index 12f6e1ec195f..8f6c71b8bd47 100644 --- a/app/Bus/Events/Subscriber/SubscriberHasUpdatedSubscriptionsEvent.php +++ b/app/Bus/Events/Subscriber/SubscriberHasUpdatedSubscriptionsEvent.php @@ -38,4 +38,14 @@ public function __construct(Subscriber $subscriber) { $this->subscriber = $subscriber; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Subscriber has updated subscription.'; + } } diff --git a/app/Bus/Events/Subscriber/SubscriberHasVerifiedEvent.php b/app/Bus/Events/Subscriber/SubscriberHasVerifiedEvent.php index b0ed5a7d26ee..b621dda139fc 100644 --- a/app/Bus/Events/Subscriber/SubscriberHasVerifiedEvent.php +++ b/app/Bus/Events/Subscriber/SubscriberHasVerifiedEvent.php @@ -33,4 +33,14 @@ public function __construct(Subscriber $subscriber) { $this->subscriber = $subscriber; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'Subscriber has verified.'; + } } diff --git a/app/Bus/Events/System/SystemCheckedForUpdatesEvent.php b/app/Bus/Events/System/SystemCheckedForUpdatesEvent.php index e8da9d00504e..98481777d9ef 100644 --- a/app/Bus/Events/System/SystemCheckedForUpdatesEvent.php +++ b/app/Bus/Events/System/SystemCheckedForUpdatesEvent.php @@ -18,5 +18,13 @@ */ final class SystemCheckedForUpdatesEvent implements SystemEventInterface { - // + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'System checked for updated.'; + } } diff --git a/app/Bus/Events/System/SystemWasInstalledEvent.php b/app/Bus/Events/System/SystemWasInstalledEvent.php index 6f333f7c27d9..cfc47ea2fc00 100644 --- a/app/Bus/Events/System/SystemWasInstalledEvent.php +++ b/app/Bus/Events/System/SystemWasInstalledEvent.php @@ -18,5 +18,13 @@ */ final class SystemWasInstalledEvent implements SystemEventInterface { - // + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'System was installed.'; + } } diff --git a/app/Bus/Events/System/SystemWasResetEvent.php b/app/Bus/Events/System/SystemWasResetEvent.php index a2146c88b727..b96763f401fd 100644 --- a/app/Bus/Events/System/SystemWasResetEvent.php +++ b/app/Bus/Events/System/SystemWasResetEvent.php @@ -18,5 +18,13 @@ */ final class SystemWasResetEvent implements SystemEventInterface { - // + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'System was reset.'; + } } diff --git a/app/Bus/Events/System/SystemWasUpdatedEvent.php b/app/Bus/Events/System/SystemWasUpdatedEvent.php index 5157288819d2..faf0cf07e1a5 100644 --- a/app/Bus/Events/System/SystemWasUpdatedEvent.php +++ b/app/Bus/Events/System/SystemWasUpdatedEvent.php @@ -18,5 +18,13 @@ */ final class SystemWasUpdatedEvent implements SystemEventInterface { - // + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'System was updated.'; + } } diff --git a/app/Bus/Events/User/UserAcceptedInviteEvent.php b/app/Bus/Events/User/UserAcceptedInviteEvent.php index 776db37e705f..df6dd7a9cde4 100644 --- a/app/Bus/Events/User/UserAcceptedInviteEvent.php +++ b/app/Bus/Events/User/UserAcceptedInviteEvent.php @@ -48,4 +48,14 @@ public function __construct(User $user, Invite $invite) $this->user = $user; $this->invite = $invite; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User accepted invite.'; + } } diff --git a/app/Bus/Events/User/UserDisabledTwoAuthEvent.php b/app/Bus/Events/User/UserDisabledTwoAuthEvent.php index 22316bdac13d..b5364381c96e 100644 --- a/app/Bus/Events/User/UserDisabledTwoAuthEvent.php +++ b/app/Bus/Events/User/UserDisabledTwoAuthEvent.php @@ -38,4 +38,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User disabled two-factor authentication.'; + } } diff --git a/app/Bus/Events/User/UserEnabledTwoAuthEvent.php b/app/Bus/Events/User/UserEnabledTwoAuthEvent.php index ad3a56b77d37..1fd69d609fda 100644 --- a/app/Bus/Events/User/UserEnabledTwoAuthEvent.php +++ b/app/Bus/Events/User/UserEnabledTwoAuthEvent.php @@ -38,4 +38,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User enabled two-factor authentication.'; + } } diff --git a/app/Bus/Events/User/UserFailedTwoAuthEvent.php b/app/Bus/Events/User/UserFailedTwoAuthEvent.php index c416e317e175..4b6a7beb2b0f 100644 --- a/app/Bus/Events/User/UserFailedTwoAuthEvent.php +++ b/app/Bus/Events/User/UserFailedTwoAuthEvent.php @@ -38,4 +38,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User failed two-factor authentication.'; + } } diff --git a/app/Bus/Events/User/UserLoggedInEvent.php b/app/Bus/Events/User/UserLoggedInEvent.php index a10d1547881a..1a15f6b19b7b 100644 --- a/app/Bus/Events/User/UserLoggedInEvent.php +++ b/app/Bus/Events/User/UserLoggedInEvent.php @@ -38,4 +38,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User logged in.'; + } } diff --git a/app/Bus/Events/User/UserLoggedOutEvent.php b/app/Bus/Events/User/UserLoggedOutEvent.php index 9c51c6e3fd03..31172292a6b7 100644 --- a/app/Bus/Events/User/UserLoggedOutEvent.php +++ b/app/Bus/Events/User/UserLoggedOutEvent.php @@ -38,4 +38,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User logged out.'; + } } diff --git a/app/Bus/Events/User/UserPassedTwoAuthEvent.php b/app/Bus/Events/User/UserPassedTwoAuthEvent.php index be775510e277..020af5eec4c1 100644 --- a/app/Bus/Events/User/UserPassedTwoAuthEvent.php +++ b/app/Bus/Events/User/UserPassedTwoAuthEvent.php @@ -38,4 +38,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User passed two-factor authentication.'; + } } diff --git a/app/Bus/Events/User/UserRegeneratedApiTokenEvent.php b/app/Bus/Events/User/UserRegeneratedApiTokenEvent.php index 4797608f33c9..a81bd89f4d49 100644 --- a/app/Bus/Events/User/UserRegeneratedApiTokenEvent.php +++ b/app/Bus/Events/User/UserRegeneratedApiTokenEvent.php @@ -38,4 +38,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User regenerated api token.'; + } } diff --git a/app/Bus/Events/User/UserWasAddedEvent.php b/app/Bus/Events/User/UserWasAddedEvent.php index fffe48fb7cef..7fe620e10228 100644 --- a/app/Bus/Events/User/UserWasAddedEvent.php +++ b/app/Bus/Events/User/UserWasAddedEvent.php @@ -33,4 +33,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User was added.'; + } } diff --git a/app/Bus/Events/User/UserWasInvitedEvent.php b/app/Bus/Events/User/UserWasInvitedEvent.php index 4bcada2f5d6d..dec488e8c7aa 100644 --- a/app/Bus/Events/User/UserWasInvitedEvent.php +++ b/app/Bus/Events/User/UserWasInvitedEvent.php @@ -33,4 +33,14 @@ public function __construct(Invite $invite) { $this->invite = $invite; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User was invited.'; + } } diff --git a/app/Bus/Events/User/UserWasRemovedEvent.php b/app/Bus/Events/User/UserWasRemovedEvent.php index d7504e495efd..d387c8f4c1a3 100644 --- a/app/Bus/Events/User/UserWasRemovedEvent.php +++ b/app/Bus/Events/User/UserWasRemovedEvent.php @@ -33,4 +33,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User was removed.'; + } } diff --git a/app/Bus/Events/User/UserWasWelcomedEvent.php b/app/Bus/Events/User/UserWasWelcomedEvent.php index a2f052d7a021..f00ce3aa274b 100644 --- a/app/Bus/Events/User/UserWasWelcomedEvent.php +++ b/app/Bus/Events/User/UserWasWelcomedEvent.php @@ -38,4 +38,14 @@ public function __construct(User $user) { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User was welcomed.'; + } }