Skip to content

Commit

Permalink
Added string version of all events for action tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Feb 3, 2017
1 parent fb0f2cd commit 9c5e9aa
Show file tree
Hide file tree
Showing 45 changed files with 450 additions and 6 deletions.
10 changes: 9 additions & 1 deletion app/Bus/Events/Beacon/BeaconFailedToSendEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@
*/
final class BeaconFailedToSendEvent implements BeaconEventInterface
{
//
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Beacon failed to send.';
}
}
10 changes: 9 additions & 1 deletion app/Bus/Events/Beacon/BeaconWasSentEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@
*/
final class BeaconWasSentEvent implements BeaconEventInterface
{
//
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Beacon was sent.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Component/ComponentStatusWasUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Component/ComponentWasAddedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Component/ComponentWasRemovedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
16 changes: 16 additions & 0 deletions app/Bus/Events/Component/ComponentWasUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

use CachetHQ\Cachet\Models\Component;

/**
* This is the component was updated event class.
*
* @author James Brooks <[email protected]>
* @author Graham Campbell <[email protected]>
*/
final class ComponentWasUpdatedEvent implements ComponentEventInterface
{
/**
Expand All @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/ComponentGroup/ComponentGroupWasAddedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/ComponentGroup/ComponentGroupWasRemovedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/ComponentGroup/ComponentGroupWasUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Incident/IncidentWasRemovedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Incident/IncidentWasReportedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Incident/IncidentWasUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/IncidentUpdate/IncidentUpdateWasRemovedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/IncidentUpdate/IncidentUpdateWasReportedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/IncidentUpdate/IncidentUpdateWasUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Invite/InviteWasClaimedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Metric/MetricPointWasAddedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Metric/MetricPointWasRemovedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Metric/MetricPointWasUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Metric/MetricWasAddedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Metric/MetricWasRemovedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Metric/MetricWasUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Schedule/ScheduleWasCreatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Schedule/ScheduleWasRemovedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
10 changes: 10 additions & 0 deletions app/Bus/Events/Schedule/ScheduleWasUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
}
}
Loading

0 comments on commit 9c5e9aa

Please sign in to comment.