100 lines
2.1 KiB
PHP
100 lines
2.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace CachetHQ\Cachet\Commands\Incident;
|
|
|
|
use CachetHQ\Cachet\Models\Incident;
|
|
|
|
class UpdateIncidentCommand
|
|
{
|
|
/**
|
|
* The incident.
|
|
*
|
|
* @var \CachetHQ\Cachet\Models\Incident
|
|
*/
|
|
public $incident;
|
|
|
|
/**
|
|
* The incident name.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $name;
|
|
|
|
/**
|
|
* The incident status.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $status;
|
|
|
|
/**
|
|
* The incident message.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $message;
|
|
|
|
/**
|
|
* The incident visibility.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $visible;
|
|
|
|
/**
|
|
* The incident component.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $component_id;
|
|
|
|
/**
|
|
* The component status.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $component_status;
|
|
|
|
/**
|
|
* Whether to notify about the incident or not.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $notify;
|
|
|
|
/**
|
|
* Create a new update incident command instance.
|
|
*
|
|
* @param \CachetHQ\Cachet\Models\Incident $name
|
|
* @param string $name
|
|
* @param int $status
|
|
* @param string $message
|
|
* @param int $visible
|
|
* @param int $component_id
|
|
* @param int $component_status
|
|
* @param bool $notify
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(Incident $incident, $name, $status, $message, $visible, $component_id, $component_status, $notify)
|
|
{
|
|
$this->incident = $incident;
|
|
$this->name = $name;
|
|
$this->status = $status;
|
|
$this->message = $message;
|
|
$this->visible = $visible;
|
|
$this->component_id = $component_id;
|
|
$this->component_status = $component_status;
|
|
$this->notify = $notify;
|
|
}
|
|
}
|