@@ -62,6 +62,13 @@ final class ReportIncidentCommand
62
62
*/
63
63
public $ notify ;
64
64
65
+ /**
66
+ * Whether to stick the incident on top.
67
+ *
68
+ * @var bool
69
+ */
70
+ public $ stickied ;
71
+
65
72
/**
66
73
* The date at which the incident occurred.
67
74
*
@@ -96,6 +103,7 @@ final class ReportIncidentCommand
96
103
'component_id ' => 'int|required_with:component_status ' ,
97
104
'component_status ' => 'int|min:1|max:4|required_with:component_id ' ,
98
105
'notify ' => 'bool ' ,
106
+ 'stickied ' => 'bool ' ,
99
107
'incident_date ' => 'string ' ,
100
108
'template ' => 'string ' ,
101
109
];
@@ -110,13 +118,14 @@ final class ReportIncidentCommand
110
118
* @param int $component_id
111
119
* @param int $component_status
112
120
* @param bool $notify
121
+ * @param bool $stickied
113
122
* @param string|null $incident_date
114
123
* @param string|null $template
115
124
* @param array|null $template_vars
116
125
*
117
126
* @return void
118
127
*/
119
- public function __construct ($ name , $ status , $ message , $ visible , $ component_id , $ component_status , $ notify , $ incident_date , $ template , array $ template_vars = null )
128
+ public function __construct ($ name , $ status , $ message , $ visible , $ component_id , $ component_status , $ notify , $ stickied , $ incident_date , $ template , array $ template_vars = null )
120
129
{
121
130
$ this ->name = $ name ;
122
131
$ this ->status = $ status ;
@@ -125,6 +134,7 @@ public function __construct($name, $status, $message, $visible, $component_id, $
125
134
$ this ->component_id = $ component_id ;
126
135
$ this ->component_status = $ component_status ;
127
136
$ this ->notify = $ notify ;
137
+ $ this ->stickied = $ stickied ;
128
138
$ this ->incident_date = $ incident_date ;
129
139
$ this ->template = $ template ;
130
140
$ this ->template_vars = $ template_vars ;
0 commit comments