1 | <?php |
||
9 | class Planning |
||
10 | { |
||
11 | use IdentityTrait; |
||
12 | |||
13 | /** |
||
14 | * Nom du planning. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $name; |
||
19 | |||
20 | /** |
||
21 | * Plages Horaires. |
||
22 | * |
||
23 | * @var SDIS62\Core\Ops\Entity\PlageHoraire[] |
||
24 | */ |
||
25 | protected $plages_horaires; |
||
26 | |||
27 | /** |
||
28 | * Création d'un planning. |
||
29 | * |
||
30 | * @param string $name |
||
31 | */ |
||
32 | public function __construct($name) |
||
37 | |||
38 | /** |
||
39 | * Ajout d'une plage horaire. |
||
40 | * |
||
41 | * @param SDIS62\Core\Ops\Entity\PlageHoraire $plage_horaire |
||
42 | * |
||
43 | * @return self |
||
44 | */ |
||
45 | public function addPlageHoraire(PlageHoraire $plage_horaire) |
||
86 | |||
87 | /** |
||
88 | * Récupération des plages horaires du planning. |
||
89 | * |
||
90 | * @return SDIS62\Core\Ops\Entity\PlageHoraire[] |
||
91 | */ |
||
92 | public function getPlagesHoraires() |
||
96 | |||
97 | /** |
||
98 | * Get the value of Gardes. |
||
99 | * |
||
100 | * @return SDIS62\Core\Ops\Entity\PlageHoraire\Garde[] |
||
101 | */ |
||
102 | public function getGardes() |
||
114 | |||
115 | /** |
||
116 | * Get the value of Dispos. |
||
117 | * |
||
118 | * @return SDIS62\Core\Ops\Entity\PlageHoraire\Dispo[] |
||
119 | */ |
||
120 | public function getDispos() |
||
132 | |||
133 | /** |
||
134 | * Get the value of Nom du planning. |
||
135 | * |
||
136 | * @return string |
||
137 | */ |
||
138 | public function getName() |
||
142 | |||
143 | /** |
||
144 | * Set the value of Nom du planning. |
||
145 | * |
||
146 | * @param string name |
||
147 | * |
||
148 | * @return self |
||
149 | */ |
||
150 | public function setName($name) |
||
156 | } |
||
157 |
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..