1 | <?php |
||
9 | class Intervention |
||
10 | { |
||
11 | use IdentityTrait; |
||
12 | |||
13 | /** |
||
14 | * Précision sur le sinistre de l'intervention. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $precision; |
||
19 | |||
20 | /** |
||
21 | * Observations. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $observations; |
||
26 | |||
27 | /** |
||
28 | * L'intervention est elle importante ? |
||
29 | * |
||
30 | * @var bool |
||
31 | */ |
||
32 | protected $important; |
||
33 | |||
34 | /** |
||
35 | * Date de création. |
||
36 | * |
||
37 | * @var Datetime |
||
38 | */ |
||
39 | protected $created; |
||
40 | |||
41 | /** |
||
42 | * Date de mise à jour. |
||
43 | * |
||
44 | * @var Datetime |
||
45 | */ |
||
46 | protected $updated; |
||
47 | |||
48 | /** |
||
49 | * Date de fin. |
||
50 | * |
||
51 | * @var Datetime |
||
52 | */ |
||
53 | protected $ended; |
||
54 | |||
55 | /** |
||
56 | * Sinistre de l'intervention. |
||
57 | * |
||
58 | * @var SDIS62\Core\Ops\Entity\Sinistre |
||
59 | */ |
||
60 | protected $sinistre; |
||
61 | |||
62 | /** |
||
63 | * Engagements sur l'intervention. |
||
64 | * |
||
65 | * @var SDIS62\Core\Ops\Entity\Engagement[] |
||
66 | */ |
||
67 | protected $engagements; |
||
68 | |||
69 | /** |
||
70 | * Evenements particuliers de l'intervention. |
||
71 | * |
||
72 | * @var SDIS62\Core\Ops\Entity\Evenement[] |
||
73 | */ |
||
74 | protected $evenements; |
||
75 | |||
76 | /** |
||
77 | * Coordonnées de l'intervention. |
||
78 | * |
||
79 | * @var SDIS62\Core\Ops\Entity\Coordinates |
||
80 | */ |
||
81 | protected $coordinates; |
||
82 | |||
83 | /** |
||
84 | * Adresse de l'intervention. |
||
85 | * |
||
86 | * @var string |
||
87 | */ |
||
88 | protected $address; |
||
89 | |||
90 | /** |
||
91 | * Commune ou se place l'intervention. |
||
92 | * |
||
93 | * @var SDIS62\Core\Ops\Entity\Commune |
||
94 | */ |
||
95 | protected $commune; |
||
96 | |||
97 | /** |
||
98 | * Création d'une intervention. |
||
99 | */ |
||
100 | public function __construct(Sinistre $sinistre) |
||
107 | |||
108 | /** |
||
109 | * Get the value of Précision sur le sinistre de l'intervention. |
||
110 | * |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getPrecision() |
||
117 | |||
118 | /** |
||
119 | * Set the value of Précision sur le sinistre de l'intervention. |
||
120 | * |
||
121 | * @param string precision |
||
122 | * |
||
123 | * @return self |
||
124 | */ |
||
125 | public function setPrecision($precision) |
||
133 | |||
134 | /** |
||
135 | * Get the value of Observations. |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getObservations() |
||
143 | |||
144 | /** |
||
145 | * Set the value of Observations. |
||
146 | * |
||
147 | * @param string observations |
||
148 | * |
||
149 | * @return self |
||
150 | */ |
||
151 | public function setObservations($observations) |
||
159 | |||
160 | /** |
||
161 | * Get the value of L'intervention est elle importante ? |
||
162 | * |
||
163 | * @return bool |
||
164 | */ |
||
165 | public function isImportant() |
||
169 | |||
170 | /** |
||
171 | * Set the value of L'intervention est elle importante ? |
||
172 | * |
||
173 | * @param bool important |
||
174 | * |
||
175 | * @return self |
||
176 | */ |
||
177 | public function setImportant($important = true) |
||
185 | |||
186 | /** |
||
187 | * Get the value of Date de création. |
||
188 | * |
||
189 | * @return Datetime |
||
190 | */ |
||
191 | public function getCreated() |
||
195 | |||
196 | /** |
||
197 | * Get the value of Date de mise à jour. |
||
198 | * |
||
199 | * @return Datetime|null |
||
200 | */ |
||
201 | public function getUpdated() |
||
205 | |||
206 | /** |
||
207 | * Set the value of Date de mise à jour (la date doit être supérieure à la date de création). |
||
208 | * |
||
209 | * @param Datetime|string updated Format d-m-Y H:i:s |
||
210 | * |
||
211 | * @return self |
||
212 | */ |
||
213 | public function setUpdated($updated = null) |
||
227 | |||
228 | /** |
||
229 | * Get the value of Date de fin. |
||
230 | * |
||
231 | * @return Datetime|null |
||
232 | */ |
||
233 | public function getEnded() |
||
237 | |||
238 | /** |
||
239 | * Set the value of Date de fin (la date doit être supérieure à la date de création et de mise à jour) |
||
240 | * Met fin à tous les engagements. |
||
241 | * |
||
242 | * @param Datetime|string ended Format d-m-Y H:i:s |
||
243 | * |
||
244 | * @return self |
||
245 | */ |
||
246 | public function setEnded($ended) |
||
262 | |||
263 | /** |
||
264 | * Retourne vrai si l'intervention est terminée. |
||
265 | * |
||
266 | * @return bool |
||
267 | */ |
||
268 | public function isEnded() |
||
272 | |||
273 | /** |
||
274 | * Get the value of Sinistre de l'intervention. |
||
275 | * |
||
276 | * @return SDIS62\Core\Ops\Entity\Sinistre |
||
277 | */ |
||
278 | public function getSinistre() |
||
282 | |||
283 | /** |
||
284 | * Set the value of Sinistre de l'intervention. |
||
285 | * |
||
286 | * @param SDIS62\Core\Ops\Entity\Sinistre sinistre |
||
287 | * |
||
288 | * @return self |
||
289 | */ |
||
290 | public function setSinistre(Sinistre $sinistre) |
||
298 | |||
299 | /** |
||
300 | * Get the value of Engagements sur l'intervention. |
||
301 | * |
||
302 | * @return SDIS62\Core\Ops\Entity\Engagement[] |
||
303 | */ |
||
304 | public function getEngagements() |
||
308 | |||
309 | /** |
||
310 | * Ajoute un engagement à l'intervention. |
||
311 | * |
||
312 | * @param SDIS62\Core\Ops\Entity\Engagement $engagement |
||
313 | * |
||
314 | * @return self |
||
315 | */ |
||
316 | public function addEngagement(Engagement $engagement) |
||
324 | |||
325 | /** |
||
326 | * Get the value of Evenements particuliers de l'intervention. |
||
327 | * |
||
328 | * @return SDIS62\Core\Ops\Entity\Evenement[] |
||
329 | */ |
||
330 | public function getEvenements() |
||
344 | |||
345 | /** |
||
346 | * Ajoute un evenement à l'intervention. |
||
347 | * |
||
348 | * @param SDIS62\Core\Ops\Entity\Evenement $evenement |
||
349 | * |
||
350 | * @return self |
||
351 | */ |
||
352 | public function addEvenement(Evenement $evenement) |
||
360 | |||
361 | /** |
||
362 | * Get the value of Coordonnées de l'intervention. |
||
363 | * |
||
364 | * @return SDIS62\Core\Ops\Entity\Coordinates |
||
365 | */ |
||
366 | public function getCoordinates() |
||
370 | |||
371 | /** |
||
372 | * Set the value of Coordonnées de l'intervention. |
||
373 | * |
||
374 | * @param SDIS62\Core\Ops\Entity\Coordinates $coordinates |
||
375 | * |
||
376 | * @return self |
||
377 | */ |
||
378 | public function setCoordinates(Coordinates $coordinates) |
||
386 | |||
387 | /** |
||
388 | * Get the value of Adresse de l'intervention. |
||
389 | * |
||
390 | * @return string |
||
391 | */ |
||
392 | public function getAddress() |
||
396 | |||
397 | /** |
||
398 | * Set the value of Adresse de l'intervention. |
||
399 | * |
||
400 | * @param string address |
||
401 | * |
||
402 | * @return self |
||
403 | */ |
||
404 | public function setAddress($address) |
||
412 | |||
413 | /** |
||
414 | * Get the value of Commune ou se place l'intervention. |
||
415 | * |
||
416 | * @return SDIS62\Core\Ops\Entity\Commune |
||
417 | */ |
||
418 | public function getCommune() |
||
422 | |||
423 | /** |
||
424 | * Set the value of Commune ou se place l'intervention. |
||
425 | * |
||
426 | * @param SDIS62\Core\Ops\Entity\Commune commune |
||
427 | * |
||
428 | * @return self |
||
429 | */ |
||
430 | public function setCommune(Commune $commune) |
||
438 | } |
||
439 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..