1 | <?php |
||
10 | abstract class Engagement |
||
11 | { |
||
12 | use IdentityTrait; |
||
13 | |||
14 | /** |
||
15 | * Création de l'engagement. |
||
16 | * |
||
17 | * @var Datetime |
||
18 | */ |
||
19 | protected $created; |
||
20 | |||
21 | /** |
||
22 | * Date de mise à jour. |
||
23 | * |
||
24 | * @var Datetime |
||
25 | */ |
||
26 | protected $updated; |
||
27 | |||
28 | /** |
||
29 | * Fin de l'engagement. |
||
30 | * |
||
31 | * @var Datetime |
||
32 | */ |
||
33 | protected $ended; |
||
34 | |||
35 | /** |
||
36 | * Evenements particuliers de l'engagement. |
||
37 | * |
||
38 | * @var SDIS62\Core\Ops\Entity\Evenement[] |
||
39 | */ |
||
40 | protected $evenements; |
||
41 | |||
42 | /** |
||
43 | * Intervention concernée. |
||
44 | * |
||
45 | * @var SDIS62\Core\Ops\Entity\Intervention |
||
46 | */ |
||
47 | protected $intervention; |
||
48 | |||
49 | /** |
||
50 | * Ajout d'un engagement à une intervention. |
||
51 | * |
||
52 | * @param SDIS62\Core\Ops\Entity\Intervention $intervention |
||
53 | */ |
||
54 | public function __construct(Intervention $intervention) |
||
63 | |||
64 | /** |
||
65 | * Get the value of Type de l'engagement. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | final public function getType() |
||
77 | |||
78 | /** |
||
79 | * Get the value of Création de l'engagement. |
||
80 | * |
||
81 | * @return Datetime |
||
82 | */ |
||
83 | public function getCreated() |
||
87 | |||
88 | /** |
||
89 | * Get the value of Date de mise à jour. |
||
90 | * |
||
91 | * @return Datetime|null |
||
92 | */ |
||
93 | public function getUpdated() |
||
97 | |||
98 | /** |
||
99 | * Set the value of Date de mise à jour (la date doit être supérieure à la date de création). |
||
100 | * |
||
101 | * @param Datetime|string updated Format d-m-Y H:i:s |
||
102 | * |
||
103 | * @return self |
||
104 | */ |
||
105 | public function setUpdated($updated = null) |
||
119 | |||
120 | /** |
||
121 | * Get the value of Date de fin. |
||
122 | * |
||
123 | * @return Datetime|null |
||
124 | */ |
||
125 | public function getEnded() |
||
129 | |||
130 | /** |
||
131 | * Set the value of Date de fin (la date doit être supérieure à la date de création). |
||
132 | * |
||
133 | * @param Datetime|string ended Format d-m-Y H:i:s |
||
134 | * |
||
135 | * @return self |
||
136 | */ |
||
137 | public function setEnded($ended) |
||
148 | |||
149 | /** |
||
150 | * Retourne vrai si l'engagement est terminée. |
||
151 | * |
||
152 | * @return bool |
||
153 | */ |
||
154 | public function isEnded() |
||
158 | |||
159 | /** |
||
160 | * Get the value of Evenements particuliers de l'engagement. |
||
161 | * |
||
162 | * @return SDIS62\Core\Ops\Entity\Evenement[] |
||
163 | */ |
||
164 | public function getEvenements() |
||
178 | |||
179 | /** |
||
180 | * Ajoute un evenement à l'engagement. |
||
181 | * |
||
182 | * @param SDIS62\Core\Ops\Entity\Evenement $evenement |
||
183 | * |
||
184 | * @return self |
||
185 | */ |
||
186 | public function addEvenement(Evenement $evenement) |
||
194 | |||
195 | /** |
||
196 | * Get the value of Intervention. |
||
197 | * |
||
198 | * @return SDIS62\Core\Ops\Entity\Intervention |
||
199 | */ |
||
200 | public function getIntervention() |
||
204 | } |
||
205 |
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..