1 | <?php |
||
2 | |||
3 | namespace DevoraliveCachet\Entity; |
||
4 | |||
5 | use DateTime; |
||
6 | use JMS\Serializer\Annotation as JMS; |
||
7 | |||
8 | /** |
||
9 | * Class Incident |
||
10 | * @package DevoraliveCachet\Entity |
||
11 | */ |
||
12 | class Incident extends Entity |
||
13 | { |
||
14 | |||
15 | const STATUS_SCHEDULED = 0; |
||
16 | const STATUS_INVESTIGATING = 1; |
||
17 | const STATUS_IDENTIFIED = 2; |
||
18 | const STATUS_WATCHING = 3; |
||
19 | const STATUS_FIXED = 4; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | * @JMS\Type("string") |
||
24 | */ |
||
25 | protected $name; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | * @JMS\Type("string") |
||
30 | */ |
||
31 | protected $message; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | * @JMS\Type("int") |
||
36 | * @JMS\SerializedName("component_id") |
||
37 | */ |
||
38 | protected $component; |
||
39 | |||
40 | /** |
||
41 | * @var int |
||
42 | * @JMS\Type("int") |
||
43 | * @JMS\SerializedName("component_status") |
||
44 | */ |
||
45 | protected $componentStatus; |
||
46 | |||
47 | /** |
||
48 | * @var int |
||
49 | * @JMS\Type("int") |
||
50 | */ |
||
51 | protected $status; |
||
52 | |||
53 | /** |
||
54 | * @var int |
||
55 | * @JMS\Type("string") |
||
56 | * @JMS\SerializedName("human_status") |
||
57 | */ |
||
58 | protected $humanStatus; |
||
59 | |||
60 | /** |
||
61 | * @var int |
||
62 | * @JMS\Type("int") |
||
63 | */ |
||
64 | protected $visible; |
||
65 | |||
66 | /** |
||
67 | * @var DateTime |
||
68 | * @JMS\Type("DateTime<'Y-m-d H:i:s'>") |
||
69 | * @JMS\SerializedName("scheduled_at") |
||
70 | */ |
||
71 | protected $scheduledAt; |
||
72 | |||
73 | /** |
||
74 | * Get the value of Name |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getName() |
||
79 | { |
||
80 | return $this->name; |
||
81 | } |
||
82 | |||
83 | /** |
||
84 | * Set the value of Name |
||
85 | * |
||
86 | * @param string name |
||
0 ignored issues
–
show
|
|||
87 | * |
||
88 | * @return self |
||
89 | */ |
||
90 | public function setName($name) |
||
91 | { |
||
92 | $this->name = $name; |
||
93 | |||
94 | return $this; |
||
95 | } |
||
96 | |||
97 | /** |
||
98 | * Get the value of Message |
||
99 | * |
||
100 | * @return int |
||
101 | */ |
||
102 | public function getMessage() |
||
103 | { |
||
104 | return $this->message; |
||
105 | } |
||
106 | |||
107 | /** |
||
108 | * Set the value of Message |
||
109 | * |
||
110 | * @param int message |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\message was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
111 | * |
||
112 | * @return self |
||
113 | */ |
||
114 | public function setMessage($message) |
||
115 | { |
||
116 | $this->message = $message; |
||
117 | |||
118 | return $this; |
||
119 | } |
||
120 | |||
121 | /** |
||
122 | * Get the value of Component |
||
123 | * |
||
124 | * @return int |
||
125 | */ |
||
126 | public function getComponent() |
||
127 | { |
||
128 | return $this->component; |
||
129 | } |
||
130 | |||
131 | /** |
||
132 | * @return int |
||
133 | */ |
||
134 | public function getComponentStatus() |
||
135 | { |
||
136 | return $this->componentStatus; |
||
137 | } |
||
138 | |||
139 | /** |
||
140 | * Set the value of Component |
||
141 | * |
||
142 | * @param int component |
||
143 | * |
||
144 | * @return self |
||
145 | */ |
||
146 | public function setComponent($component) |
||
147 | { |
||
148 | $this->component = $component; |
||
149 | |||
150 | return $this; |
||
151 | } |
||
152 | |||
153 | /** |
||
154 | * @param $status |
||
155 | * |
||
156 | * @return self |
||
157 | */ |
||
158 | public function setComponentStatus($status) |
||
159 | { |
||
160 | $this->componentStatus = $status; |
||
161 | |||
162 | return $this; |
||
163 | } |
||
164 | |||
165 | /** |
||
166 | * Get the value of Status |
||
167 | * |
||
168 | * @return int |
||
169 | */ |
||
170 | public function getStatus() |
||
171 | { |
||
172 | return $this->status; |
||
173 | } |
||
174 | |||
175 | /** |
||
176 | * Set the value of Status |
||
177 | * |
||
178 | * @param int status |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\status was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
179 | * |
||
180 | * @return self |
||
181 | */ |
||
182 | public function setStatus($status) |
||
183 | { |
||
184 | $this->status = $status; |
||
185 | |||
186 | return $this; |
||
187 | } |
||
188 | |||
189 | /** |
||
190 | * Get the value of Human Status |
||
191 | * |
||
192 | * @return int |
||
193 | */ |
||
194 | public function getHumanStatus() |
||
195 | { |
||
196 | return $this->humanStatus; |
||
197 | } |
||
198 | |||
199 | /** |
||
200 | * Set the value of Human Status |
||
201 | * |
||
202 | * @param int humanStatus |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\humanStatus was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
203 | * |
||
204 | * @return self |
||
205 | */ |
||
206 | public function setHumanStatus($humanStatus) |
||
207 | { |
||
208 | $this->humanStatus = $humanStatus; |
||
209 | |||
210 | return $this; |
||
211 | } |
||
212 | |||
213 | /** |
||
214 | * Get the value of Visible |
||
215 | * |
||
216 | * @return int |
||
217 | */ |
||
218 | public function getVisible() |
||
219 | { |
||
220 | return $this->visible; |
||
221 | } |
||
222 | |||
223 | /** |
||
224 | * Set the value of Visible |
||
225 | * |
||
226 | * @param int visible |
||
0 ignored issues
–
show
The type
DevoraliveCachet\Entity\visible was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
227 | * |
||
228 | * @return self |
||
229 | */ |
||
230 | public function setVisible($visible) |
||
231 | { |
||
232 | $this->visible = $visible; |
||
233 | |||
234 | return $this; |
||
235 | } |
||
236 | |||
237 | /** |
||
238 | * Get the value of Scheduled At |
||
239 | * |
||
240 | * @return DateTime |
||
241 | */ |
||
242 | public function getScheduledAt() |
||
243 | { |
||
244 | return $this->scheduledAt; |
||
245 | } |
||
246 | |||
247 | /** |
||
248 | * Set the value of Scheduled At |
||
249 | * |
||
250 | * @param DateTime $scheduledAt |
||
251 | * |
||
252 | * @return self |
||
253 | */ |
||
254 | public function setScheduledAt(DateTime $scheduledAt) |
||
255 | { |
||
256 | $this->scheduledAt = $scheduledAt; |
||
257 | |||
258 | return $this; |
||
259 | } |
||
260 | } |
||
261 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths