*/ final class IncidentUpdateWasRemovedEvent implements ActionInterface, IncidentUpdateEventInterface { /** * The user who removed the incident update. * * @var \CachetHQ\Cachet\Models\User */ public $user; /** * The incident update that has been removed. * * @var \CachetHQ\Cachet\Models\IncidentUpdate */ public $update; /** * Create a new incident update was removed event instance. * * @param \CachetHQ\Cachet\Models\User $user * @param \CachetHQ\Cachet\Models\IncidentUpdate $update * * @return void */ public function __construct(User $user, IncidentUpdate $update) { $this->user = $user; $this->update = $update; } /** * Get the event description. * * @return string */ public function __toString() { return 'Incident Update was removed.'; } /** * Get the event action. * * @return array */ public function getAction() { return [ 'user' => $this->user, 'description' => (string) $this, ]; } }