1 | <?php |
||
10 | abstract class PlageHoraire |
||
11 | { |
||
12 | use IdentityTrait; |
||
13 | |||
14 | /** |
||
15 | * Début de la plage horaire. |
||
16 | * |
||
17 | * @var Datetime |
||
18 | */ |
||
19 | protected $start; |
||
20 | |||
21 | /** |
||
22 | * Fin de la plage horaire. |
||
23 | * |
||
24 | * @var Datetime |
||
25 | */ |
||
26 | protected $end; |
||
27 | |||
28 | /** |
||
29 | * Planning. |
||
30 | * |
||
31 | * @var SDIS62\Core\Ops\Entity\Planning |
||
32 | */ |
||
33 | protected $planning; |
||
34 | |||
35 | /** |
||
36 | * Pompier concerné. |
||
37 | * |
||
38 | * @var SDIS62\Core\Ops\Entity\Pompier |
||
39 | */ |
||
40 | protected $pompier; |
||
41 | |||
42 | /** |
||
43 | * Spécialités de la plage horaire. |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $specialites; |
||
48 | |||
49 | /** |
||
50 | * Ajout d'une plage horaire. |
||
51 | * |
||
52 | * @param SDIS62\Core\Ops\Entity\Planning $planning |
||
53 | * @param SDIS62\Core\Ops\Entity\Pompier $pompier |
||
54 | * @param Datetime $start |
||
55 | * @param Datetime $end |
||
56 | * @param array $specialites |
||
57 | */ |
||
58 | public function __construct(Planning $planning, Pompier $pompier, Datetime $start, Datetime $end, array $specialites = []) |
||
74 | |||
75 | /** |
||
76 | * Get the value of Début de la garde. |
||
77 | * |
||
78 | * @return Datetime |
||
79 | */ |
||
80 | public function getStart() |
||
84 | |||
85 | /** |
||
86 | * Get the value of Fin de la garde. |
||
87 | * |
||
88 | * @return Datetime |
||
89 | */ |
||
90 | public function getEnd() |
||
94 | |||
95 | /** |
||
96 | * Check si le Datetime est contenu dans la plage horaire. |
||
97 | * |
||
98 | * @param DateTime $date |
||
99 | * |
||
100 | * @return bool |
||
101 | */ |
||
102 | public function contains(DateTime $date) |
||
106 | |||
107 | /** |
||
108 | * Retourne vrai si la plage horaire est contenu dans la place horaire actuelle. |
||
109 | * |
||
110 | * @param PlageHoraire $plage |
||
111 | * @param bool $strict |
||
112 | * |
||
113 | * @return bool |
||
114 | */ |
||
115 | public function includes(PlageHoraire $plage, $strict = true) |
||
128 | |||
129 | /** |
||
130 | * Get the value of Type. |
||
131 | * |
||
132 | * @return string |
||
133 | */ |
||
134 | final public function getType() |
||
142 | |||
143 | /** |
||
144 | * Get the value of Pompier concerné. |
||
145 | * |
||
146 | * @return SDIS62\Core\Ops\Entity\Pompier |
||
147 | */ |
||
148 | public function getPompier() |
||
152 | |||
153 | /** |
||
154 | * Get the value of Planning. |
||
155 | * |
||
156 | * @return SDIS62\Core\Ops\Entity\Planning |
||
157 | */ |
||
158 | public function getPlanning() |
||
162 | |||
163 | /** |
||
164 | * Spécialitées de la plage horaire. |
||
165 | * |
||
166 | * @return array |
||
167 | */ |
||
168 | public function getSpecialites() |
||
176 | } |
||
177 |
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..