1 | <?php |
||
8 | class Centre |
||
9 | { |
||
10 | use IdentityTrait; |
||
11 | |||
12 | /** |
||
13 | * Nom du centre. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $name; |
||
18 | |||
19 | /** |
||
20 | * Classement du centre. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $classement; |
||
25 | |||
26 | /** |
||
27 | * Matériels du centre. |
||
28 | * |
||
29 | * @var SDIS62\Core\Ops\Entity\Materiel[] |
||
30 | */ |
||
31 | protected $materiels; |
||
32 | |||
33 | /** |
||
34 | * Pompiers du centre. |
||
35 | * |
||
36 | * @var SDIS62\Core\Ops\Entity\Pompier[] |
||
37 | */ |
||
38 | protected $pompiers; |
||
39 | |||
40 | /** |
||
41 | * Commune du centre. |
||
42 | * |
||
43 | * @var SDIS62\Core\Ops\Entity\Commune |
||
44 | */ |
||
45 | protected $commune; |
||
46 | |||
47 | /** |
||
48 | * Création d'un centre. |
||
49 | * |
||
50 | * @param string name |
||
51 | */ |
||
52 | public function __construct(Commune $commune, $name, $classement = 'CSP') |
||
61 | |||
62 | /** |
||
63 | * Get the value of Nom du centre. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getName() |
||
71 | |||
72 | /** |
||
73 | * Set the value of Nom du centre. |
||
74 | * |
||
75 | * @param string name |
||
76 | * |
||
77 | * @return self |
||
78 | */ |
||
79 | public function setName($name) |
||
85 | |||
86 | /** |
||
87 | * Get the value of Matériels du centre. |
||
88 | * |
||
89 | * @return SDIS62\Core\Ops\Entity\Materiel[] |
||
90 | */ |
||
91 | public function getMateriels() |
||
95 | |||
96 | /** |
||
97 | * Ajoute un matériel au centre. |
||
98 | * |
||
99 | * @param SDIS62\Core\Ops\Entity\Materiel $materiel |
||
100 | * |
||
101 | * @return self |
||
102 | */ |
||
103 | public function addMateriel(Materiel $materiel) |
||
109 | |||
110 | /** |
||
111 | * Retourne les pompiers. |
||
112 | * |
||
113 | * @return SDIS62\Core\Ops\Entity\Pompier[] |
||
114 | */ |
||
115 | public function getPompiers() |
||
119 | |||
120 | /** |
||
121 | * Ajoute un pompier au centre. |
||
122 | * |
||
123 | * @param SDIS62\Core\Ops\Entity\Pompier $pompier |
||
124 | * |
||
125 | * @return self |
||
126 | */ |
||
127 | public function addPompier(Pompier $pompier) |
||
133 | |||
134 | /** |
||
135 | * Get the value of commune du centre. |
||
136 | * |
||
137 | * @return SDIS62\Core\Ops\Entity\Commune |
||
138 | */ |
||
139 | public function getCommune() |
||
143 | |||
144 | /** |
||
145 | * Get the value of Classement du centre. |
||
146 | * |
||
147 | * @return string |
||
148 | */ |
||
149 | public function getClassement() |
||
153 | |||
154 | /** |
||
155 | * Set the value of Classement du centre. |
||
156 | * |
||
157 | * @param string classement |
||
158 | * |
||
159 | * @return self |
||
160 | */ |
||
161 | public function setClassement($classement) |
||
167 | } |
||
168 |
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..