diff --git a/app/Bus/Events/Beacon/BeaconFailedToSendEvent.php b/app/Bus/Events/Beacon/BeaconFailedToSendEvent.php index 53ed3eef..932dab30 100644 --- a/app/Bus/Events/Beacon/BeaconFailedToSendEvent.php +++ b/app/Bus/Events/Beacon/BeaconFailedToSendEvent.php @@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\Beacon; */ 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 1d485328..919f338f 100644 --- a/app/Bus/Events/Beacon/BeaconWasSentEvent.php +++ b/app/Bus/Events/Beacon/BeaconWasSentEvent.php @@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\Beacon; */ 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 446463a5..9450073d 100644 --- a/app/Bus/Events/Component/ComponentStatusWasUpdatedEvent.php +++ b/app/Bus/Events/Component/ComponentStatusWasUpdatedEvent.php @@ -56,4 +56,14 @@ final class ComponentStatusWasUpdatedEvent implements ComponentEventInterface $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 7c892a78..78097bf6 100644 --- a/app/Bus/Events/Component/ComponentWasAddedEvent.php +++ b/app/Bus/Events/Component/ComponentWasAddedEvent.php @@ -33,4 +33,14 @@ final class ComponentWasAddedEvent implements ComponentEventInterface { $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 f44839d3..bb78015b 100644 --- a/app/Bus/Events/Component/ComponentWasRemovedEvent.php +++ b/app/Bus/Events/Component/ComponentWasRemovedEvent.php @@ -33,4 +33,14 @@ final class ComponentWasRemovedEvent implements ComponentEventInterface { $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 b5857251..1b46c16a 100644 --- a/app/Bus/Events/Component/ComponentWasUpdatedEvent.php +++ b/app/Bus/Events/Component/ComponentWasUpdatedEvent.php @@ -13,6 +13,12 @@ namespace CachetHQ\Cachet\Bus\Events\Component; 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 @@ final class ComponentWasUpdatedEvent implements ComponentEventInterface { $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 2d8479fe..6ea377de 100644 --- a/app/Bus/Events/ComponentGroup/ComponentGroupWasAddedEvent.php +++ b/app/Bus/Events/ComponentGroup/ComponentGroupWasAddedEvent.php @@ -33,4 +33,14 @@ final class ComponentGroupWasAddedEvent implements ComponentGroupEventInterface { $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 275449ce..ac2d3b56 100644 --- a/app/Bus/Events/ComponentGroup/ComponentGroupWasRemovedEvent.php +++ b/app/Bus/Events/ComponentGroup/ComponentGroupWasRemovedEvent.php @@ -33,4 +33,14 @@ final class ComponentGroupWasRemovedEvent implements ComponentGroupEventInterfac { $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 19138f75..ab0ae77a 100644 --- a/app/Bus/Events/ComponentGroup/ComponentGroupWasUpdatedEvent.php +++ b/app/Bus/Events/ComponentGroup/ComponentGroupWasUpdatedEvent.php @@ -33,4 +33,14 @@ final class ComponentGroupWasUpdatedEvent implements ComponentGroupEventInterfac { $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 ef6890b0..0d46616a 100644 --- a/app/Bus/Events/Incident/IncidentWasRemovedEvent.php +++ b/app/Bus/Events/Incident/IncidentWasRemovedEvent.php @@ -33,4 +33,14 @@ final class IncidentWasRemovedEvent implements IncidentEventInterface { $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 b361a4d4..d608199c 100644 --- a/app/Bus/Events/Incident/IncidentWasReportedEvent.php +++ b/app/Bus/Events/Incident/IncidentWasReportedEvent.php @@ -42,4 +42,14 @@ final class IncidentWasReportedEvent implements IncidentEventInterface $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 251bc781..c4a6ba55 100644 --- a/app/Bus/Events/Incident/IncidentWasUpdatedEvent.php +++ b/app/Bus/Events/Incident/IncidentWasUpdatedEvent.php @@ -33,4 +33,14 @@ final class IncidentWasUpdatedEvent implements IncidentEventInterface { $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 1fba40ae..e9096c17 100644 --- a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasRemovedEvent.php +++ b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasRemovedEvent.php @@ -38,4 +38,14 @@ final class IncidentUpdateWasRemovedEvent implements IncidentUpdateEventInterfac { $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 e2cf8928..886eea2a 100644 --- a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasReportedEvent.php +++ b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasReportedEvent.php @@ -38,4 +38,14 @@ final class IncidentUpdateWasReportedEvent implements IncidentUpdateEventInterfa { $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 042b3af7..381f1a6e 100644 --- a/app/Bus/Events/IncidentUpdate/IncidentUpdateWasUpdatedEvent.php +++ b/app/Bus/Events/IncidentUpdate/IncidentUpdateWasUpdatedEvent.php @@ -38,4 +38,14 @@ final class IncidentUpdateWasUpdatedEvent implements IncidentUpdateEventInterfac { $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 b8a3c77d..02f950ee 100644 --- a/app/Bus/Events/Invite/InviteWasClaimedEvent.php +++ b/app/Bus/Events/Invite/InviteWasClaimedEvent.php @@ -31,4 +31,14 @@ final class InviteWasClaimedEvent implements InviteEventInterface { $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 7de09cf2..ca5a7f58 100644 --- a/app/Bus/Events/Metric/MetricPointWasAddedEvent.php +++ b/app/Bus/Events/Metric/MetricPointWasAddedEvent.php @@ -33,4 +33,14 @@ final class MetricPointWasAddedEvent implements MetricEventInterface { $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 2d0b76ee..34d126bb 100644 --- a/app/Bus/Events/Metric/MetricPointWasRemovedEvent.php +++ b/app/Bus/Events/Metric/MetricPointWasRemovedEvent.php @@ -33,4 +33,14 @@ final class MetricPointWasRemovedEvent implements MetricEventInterface { $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 35e97f5d..5361681b 100644 --- a/app/Bus/Events/Metric/MetricPointWasUpdatedEvent.php +++ b/app/Bus/Events/Metric/MetricPointWasUpdatedEvent.php @@ -33,4 +33,14 @@ final class MetricPointWasUpdatedEvent implements MetricEventInterface { $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 9d495c6e..f0abdbf3 100644 --- a/app/Bus/Events/Metric/MetricWasAddedEvent.php +++ b/app/Bus/Events/Metric/MetricWasAddedEvent.php @@ -33,4 +33,14 @@ final class MetricWasAddedEvent implements MetricEventInterface { $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 67061cf1..5777e805 100644 --- a/app/Bus/Events/Metric/MetricWasRemovedEvent.php +++ b/app/Bus/Events/Metric/MetricWasRemovedEvent.php @@ -33,4 +33,14 @@ final class MetricWasRemovedEvent implements MetricEventInterface { $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 dd400eb3..3850aae0 100644 --- a/app/Bus/Events/Metric/MetricWasUpdatedEvent.php +++ b/app/Bus/Events/Metric/MetricWasUpdatedEvent.php @@ -33,4 +33,14 @@ final class MetricWasUpdatedEvent implements MetricEventInterface { $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 32032543..eea2a7a2 100644 --- a/app/Bus/Events/Schedule/ScheduleWasCreatedEvent.php +++ b/app/Bus/Events/Schedule/ScheduleWasCreatedEvent.php @@ -38,4 +38,14 @@ final class ScheduleWasCreatedEvent implements ScheduleEventInterface { $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 1f474afa..07dcb047 100644 --- a/app/Bus/Events/Schedule/ScheduleWasRemovedEvent.php +++ b/app/Bus/Events/Schedule/ScheduleWasRemovedEvent.php @@ -38,4 +38,14 @@ final class ScheduleWasRemovedEvent implements ScheduleEventInterface { $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 1953a734..066eb4b1 100644 --- a/app/Bus/Events/Schedule/ScheduleWasUpdatedEvent.php +++ b/app/Bus/Events/Schedule/ScheduleWasUpdatedEvent.php @@ -38,4 +38,14 @@ final class ScheduleWasUpdatedEvent implements ScheduleEventInterface { $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 c48668f5..2dc68624 100644 --- a/app/Bus/Events/Subscriber/SubscriberHasSubscribedEvent.php +++ b/app/Bus/Events/Subscriber/SubscriberHasSubscribedEvent.php @@ -33,4 +33,14 @@ final class SubscriberHasSubscribedEvent implements SubscriberEventInterface { $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 2d35fc2a..4e67f5c8 100644 --- a/app/Bus/Events/Subscriber/SubscriberHasUnsubscribedEvent.php +++ b/app/Bus/Events/Subscriber/SubscriberHasUnsubscribedEvent.php @@ -33,4 +33,14 @@ final class SubscriberHasUnsubscribedEvent implements SubscriberEventInterface { $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 12f6e1ec..8f6c71b8 100644 --- a/app/Bus/Events/Subscriber/SubscriberHasUpdatedSubscriptionsEvent.php +++ b/app/Bus/Events/Subscriber/SubscriberHasUpdatedSubscriptionsEvent.php @@ -38,4 +38,14 @@ final class SubscriberHasUpdatedSubscriptionsEvent implements SubscriberEventInt { $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 b0ed5a7d..b621dda1 100644 --- a/app/Bus/Events/Subscriber/SubscriberHasVerifiedEvent.php +++ b/app/Bus/Events/Subscriber/SubscriberHasVerifiedEvent.php @@ -33,4 +33,14 @@ final class SubscriberHasVerifiedEvent implements SubscriberEventInterface { $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 e8da9d00..98481777 100644 --- a/app/Bus/Events/System/SystemCheckedForUpdatesEvent.php +++ b/app/Bus/Events/System/SystemCheckedForUpdatesEvent.php @@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\System; */ 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 6f333f7c..cfc47ea2 100644 --- a/app/Bus/Events/System/SystemWasInstalledEvent.php +++ b/app/Bus/Events/System/SystemWasInstalledEvent.php @@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\System; */ 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 a2146c88..b96763f4 100644 --- a/app/Bus/Events/System/SystemWasResetEvent.php +++ b/app/Bus/Events/System/SystemWasResetEvent.php @@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\System; */ 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 51572888..faf0cf07 100644 --- a/app/Bus/Events/System/SystemWasUpdatedEvent.php +++ b/app/Bus/Events/System/SystemWasUpdatedEvent.php @@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\System; */ 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 776db37e..df6dd7a9 100644 --- a/app/Bus/Events/User/UserAcceptedInviteEvent.php +++ b/app/Bus/Events/User/UserAcceptedInviteEvent.php @@ -48,4 +48,14 @@ final class UserAcceptedInviteEvent implements UserEventInterface $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 22316bda..b5364381 100644 --- a/app/Bus/Events/User/UserDisabledTwoAuthEvent.php +++ b/app/Bus/Events/User/UserDisabledTwoAuthEvent.php @@ -38,4 +38,14 @@ final class UserDisabledTwoAuthEvent implements UserEventInterface { $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 ad3a56b7..1fd69d60 100644 --- a/app/Bus/Events/User/UserEnabledTwoAuthEvent.php +++ b/app/Bus/Events/User/UserEnabledTwoAuthEvent.php @@ -38,4 +38,14 @@ final class UserEnabledTwoAuthEvent implements UserEventInterface { $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 c416e317..4b6a7beb 100644 --- a/app/Bus/Events/User/UserFailedTwoAuthEvent.php +++ b/app/Bus/Events/User/UserFailedTwoAuthEvent.php @@ -38,4 +38,14 @@ final class UserFailedTwoAuthEvent implements UserEventInterface { $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 a10d1547..1a15f6b1 100644 --- a/app/Bus/Events/User/UserLoggedInEvent.php +++ b/app/Bus/Events/User/UserLoggedInEvent.php @@ -38,4 +38,14 @@ final class UserLoggedInEvent implements UserEventInterface { $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 9c51c6e3..31172292 100644 --- a/app/Bus/Events/User/UserLoggedOutEvent.php +++ b/app/Bus/Events/User/UserLoggedOutEvent.php @@ -38,4 +38,14 @@ final class UserLoggedOutEvent implements UserEventInterface { $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 be775510..020af5ee 100644 --- a/app/Bus/Events/User/UserPassedTwoAuthEvent.php +++ b/app/Bus/Events/User/UserPassedTwoAuthEvent.php @@ -38,4 +38,14 @@ final class UserPassedTwoAuthEvent implements UserEventInterface { $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 4797608f..a81bd89f 100644 --- a/app/Bus/Events/User/UserRegeneratedApiTokenEvent.php +++ b/app/Bus/Events/User/UserRegeneratedApiTokenEvent.php @@ -38,4 +38,14 @@ final class UserRegeneratedApiTokenEvent implements UserEventInterface { $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 fffe48fb..7fe620e1 100644 --- a/app/Bus/Events/User/UserWasAddedEvent.php +++ b/app/Bus/Events/User/UserWasAddedEvent.php @@ -33,4 +33,14 @@ final class UserWasAddedEvent implements UserEventInterface { $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 4bcada2f..dec488e8 100644 --- a/app/Bus/Events/User/UserWasInvitedEvent.php +++ b/app/Bus/Events/User/UserWasInvitedEvent.php @@ -33,4 +33,14 @@ final class UserWasInvitedEvent implements UserEventInterface { $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 d7504e49..d387c8f4 100644 --- a/app/Bus/Events/User/UserWasRemovedEvent.php +++ b/app/Bus/Events/User/UserWasRemovedEvent.php @@ -33,4 +33,14 @@ final class UserWasRemovedEvent implements UserEventInterface { $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 a2f052d7..f00ce3aa 100644 --- a/app/Bus/Events/User/UserWasWelcomedEvent.php +++ b/app/Bus/Events/User/UserWasWelcomedEvent.php @@ -38,4 +38,14 @@ final class UserWasWelcomedEvent implements UserEventInterface { $this->user = $user; } + + /** + * Get the event description. + * + * @return string + */ + public function __toString() + { + return 'User was welcomed.'; + } }