Added string version of all events for action tracking
This commit is contained in:
@@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\Beacon;
|
|||||||
*/
|
*/
|
||||||
final class BeaconFailedToSendEvent implements BeaconEventInterface
|
final class BeaconFailedToSendEvent implements BeaconEventInterface
|
||||||
{
|
{
|
||||||
//
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Beacon failed to send.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\Beacon;
|
|||||||
*/
|
*/
|
||||||
final class BeaconWasSentEvent implements BeaconEventInterface
|
final class BeaconWasSentEvent implements BeaconEventInterface
|
||||||
{
|
{
|
||||||
//
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Beacon was sent.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,4 +56,14 @@ final class ComponentStatusWasUpdatedEvent implements ComponentEventInterface
|
|||||||
$this->original_status = $original_status;
|
$this->original_status = $original_status;
|
||||||
$this->new_status = $new_status;
|
$this->new_status = $new_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Component status was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class ComponentWasAddedEvent implements ComponentEventInterface
|
|||||||
{
|
{
|
||||||
$this->component = $component;
|
$this->component = $component;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Component was added.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class ComponentWasRemovedEvent implements ComponentEventInterface
|
|||||||
{
|
{
|
||||||
$this->component = $component;
|
$this->component = $component;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Component was removed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,12 @@ namespace CachetHQ\Cachet\Bus\Events\Component;
|
|||||||
|
|
||||||
use CachetHQ\Cachet\Models\Component;
|
use CachetHQ\Cachet\Models\Component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the component was updated event class.
|
||||||
|
*
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
* @author Graham Campbell <graham@alt-three.com>
|
||||||
|
*/
|
||||||
final class ComponentWasUpdatedEvent implements ComponentEventInterface
|
final class ComponentWasUpdatedEvent implements ComponentEventInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -33,4 +39,14 @@ final class ComponentWasUpdatedEvent implements ComponentEventInterface
|
|||||||
{
|
{
|
||||||
$this->component = $component;
|
$this->component = $component;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Component was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class ComponentGroupWasAddedEvent implements ComponentGroupEventInterface
|
|||||||
{
|
{
|
||||||
$this->group = $group;
|
$this->group = $group;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Component Group was added.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class ComponentGroupWasRemovedEvent implements ComponentGroupEventInterfac
|
|||||||
{
|
{
|
||||||
$this->group = $group;
|
$this->group = $group;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Component Group was removed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class ComponentGroupWasUpdatedEvent implements ComponentGroupEventInterfac
|
|||||||
{
|
{
|
||||||
$this->group = $group;
|
$this->group = $group;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Component Group was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class IncidentWasRemovedEvent implements IncidentEventInterface
|
|||||||
{
|
{
|
||||||
$this->incident = $incident;
|
$this->incident = $incident;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Incident was removed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,4 +42,14 @@ final class IncidentWasReportedEvent implements IncidentEventInterface
|
|||||||
$this->incident = $incident;
|
$this->incident = $incident;
|
||||||
$this->notify = $notify;
|
$this->notify = $notify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Incident was reported.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class IncidentWasUpdatedEvent implements IncidentEventInterface
|
|||||||
{
|
{
|
||||||
$this->incident = $incident;
|
$this->incident = $incident;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Incident was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class IncidentUpdateWasRemovedEvent implements IncidentUpdateEventInterfac
|
|||||||
{
|
{
|
||||||
$this->update = $update;
|
$this->update = $update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Incident Update was removed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class IncidentUpdateWasReportedEvent implements IncidentUpdateEventInterfa
|
|||||||
{
|
{
|
||||||
$this->update = $update;
|
$this->update = $update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Incident Update was reported.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class IncidentUpdateWasUpdatedEvent implements IncidentUpdateEventInterfac
|
|||||||
{
|
{
|
||||||
$this->update = $update;
|
$this->update = $update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Incident Update was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,4 +31,14 @@ final class InviteWasClaimedEvent implements InviteEventInterface
|
|||||||
{
|
{
|
||||||
$this->invite = $invite;
|
$this->invite = $invite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Invite was claimed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class MetricPointWasAddedEvent implements MetricEventInterface
|
|||||||
{
|
{
|
||||||
$this->metricPoint = $metricPoint;
|
$this->metricPoint = $metricPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Metric Point was added.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class MetricPointWasRemovedEvent implements MetricEventInterface
|
|||||||
{
|
{
|
||||||
$this->metricPoint = $metricPoint;
|
$this->metricPoint = $metricPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Metric Point was removed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class MetricPointWasUpdatedEvent implements MetricEventInterface
|
|||||||
{
|
{
|
||||||
$this->metricPoint = $metricPoint;
|
$this->metricPoint = $metricPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Metric Point was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class MetricWasAddedEvent implements MetricEventInterface
|
|||||||
{
|
{
|
||||||
$this->metric = $metric;
|
$this->metric = $metric;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Metric was added.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class MetricWasRemovedEvent implements MetricEventInterface
|
|||||||
{
|
{
|
||||||
$this->metric = $metric;
|
$this->metric = $metric;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Metric was removed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class MetricWasUpdatedEvent implements MetricEventInterface
|
|||||||
{
|
{
|
||||||
$this->metric = $metric;
|
$this->metric = $metric;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Metric was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class ScheduleWasCreatedEvent implements ScheduleEventInterface
|
|||||||
{
|
{
|
||||||
$this->schedule = $schedule;
|
$this->schedule = $schedule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Schedule was created.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class ScheduleWasRemovedEvent implements ScheduleEventInterface
|
|||||||
{
|
{
|
||||||
$this->schedule = $schedule;
|
$this->schedule = $schedule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Schedule was removed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class ScheduleWasUpdatedEvent implements ScheduleEventInterface
|
|||||||
{
|
{
|
||||||
$this->schedule = $schedule;
|
$this->schedule = $schedule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Schedule was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class SubscriberHasSubscribedEvent implements SubscriberEventInterface
|
|||||||
{
|
{
|
||||||
$this->subscriber = $subscriber;
|
$this->subscriber = $subscriber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Subscriber has subscribed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class SubscriberHasUnsubscribedEvent implements SubscriberEventInterface
|
|||||||
{
|
{
|
||||||
$this->subscriber = $subscriber;
|
$this->subscriber = $subscriber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Subscriber has unsubscribed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class SubscriberHasUpdatedSubscriptionsEvent implements SubscriberEventInt
|
|||||||
{
|
{
|
||||||
$this->subscriber = $subscriber;
|
$this->subscriber = $subscriber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Subscriber has updated subscription.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class SubscriberHasVerifiedEvent implements SubscriberEventInterface
|
|||||||
{
|
{
|
||||||
$this->subscriber = $subscriber;
|
$this->subscriber = $subscriber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'Subscriber has verified.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\System;
|
|||||||
*/
|
*/
|
||||||
final class SystemCheckedForUpdatesEvent implements SystemEventInterface
|
final class SystemCheckedForUpdatesEvent implements SystemEventInterface
|
||||||
{
|
{
|
||||||
//
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'System checked for updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\System;
|
|||||||
*/
|
*/
|
||||||
final class SystemWasInstalledEvent implements SystemEventInterface
|
final class SystemWasInstalledEvent implements SystemEventInterface
|
||||||
{
|
{
|
||||||
//
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'System was installed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\System;
|
|||||||
*/
|
*/
|
||||||
final class SystemWasResetEvent implements SystemEventInterface
|
final class SystemWasResetEvent implements SystemEventInterface
|
||||||
{
|
{
|
||||||
//
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'System was reset.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,5 +18,13 @@ namespace CachetHQ\Cachet\Bus\Events\System;
|
|||||||
*/
|
*/
|
||||||
final class SystemWasUpdatedEvent implements SystemEventInterface
|
final class SystemWasUpdatedEvent implements SystemEventInterface
|
||||||
{
|
{
|
||||||
//
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'System was updated.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,4 +48,14 @@ final class UserAcceptedInviteEvent implements UserEventInterface
|
|||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
$this->invite = $invite;
|
$this->invite = $invite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User accepted invite.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class UserDisabledTwoAuthEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User disabled two-factor authentication.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class UserEnabledTwoAuthEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User enabled two-factor authentication.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class UserFailedTwoAuthEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User failed two-factor authentication.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class UserLoggedInEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User logged in.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class UserLoggedOutEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User logged out.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class UserPassedTwoAuthEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User passed two-factor authentication.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class UserRegeneratedApiTokenEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User regenerated api token.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class UserWasAddedEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User was added.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class UserWasInvitedEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->invite = $invite;
|
$this->invite = $invite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User was invited.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,14 @@ final class UserWasRemovedEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User was removed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ final class UserWasWelcomedEvent implements UserEventInterface
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the event description.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
return 'User was welcomed.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user