Added ReportIncidentCommand

This commit is contained in:
James Brooks
2015-08-31 11:32:39 +01:00
parent 37d7908606
commit 082062fa1b
8 changed files with 115 additions and 58 deletions
@@ -46,7 +46,21 @@ class ReportIncidentCommand
*
* @var int
*/
public $component;
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 report incident command instance.
@@ -55,16 +69,20 @@ class ReportIncidentCommand
* @param int $status
* @param string $message
* @param int $visible
* @param int $component
* @param int $component_id
* @param int $component_status
* @param bool $notify
*
* @return void
*/
public function __construct($name, $status, $message, $visible, $component)
public function __construct($name, $status, $message, $visible, $component_id, $component_status, $notify)
{
$this->name = $name;
$this->status = $status;
$this->message = $message;
$this->visible = $visible;
$this->component = $component;
$this->component_id = $component_id;
$this->component_status = $component_status;
$this->notify = $notify;
}
}