2015-05-24 16:33:03 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of Cachet.
|
|
|
|
*
|
2015-07-06 17:37:01 +01:00
|
|
|
* (c) Alt Three Services Limited
|
2015-05-24 16:33:03 -05:00
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
2015-08-31 11:32:39 +01:00
|
|
|
namespace CachetHQ\Cachet\Events\Incident;
|
2015-05-24 16:33:03 -05:00
|
|
|
|
|
|
|
use CachetHQ\Cachet\Models\Incident;
|
|
|
|
|
2015-12-25 16:04:15 +00:00
|
|
|
final class IncidentWasReportedEvent implements IncidentEventInterface
|
2015-05-24 16:33:03 -05:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The incident that has been reported.
|
|
|
|
*
|
|
|
|
* @var \CachetHQ\Cachet\Models\Incident
|
|
|
|
*/
|
|
|
|
public $incident;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new incident has reported event instance.
|
2015-08-30 22:45:27 +01:00
|
|
|
*
|
2015-12-22 12:14:47 +00:00
|
|
|
* @param \CachetHQ\Cachet\Models\Incident $incident
|
2015-12-22 08:41:03 +00:00
|
|
|
*
|
2015-08-30 22:45:27 +01:00
|
|
|
* @return void
|
2015-05-24 16:33:03 -05:00
|
|
|
*/
|
|
|
|
public function __construct(Incident $incident)
|
|
|
|
{
|
|
|
|
$this->incident = $incident;
|
|
|
|
}
|
|
|
|
}
|