1 | <?php |
||
7 | class Commune |
||
8 | { |
||
9 | /** |
||
10 | * Code insee de la commune. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $numinsee; |
||
15 | |||
16 | /** |
||
17 | * Nom de la commune. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name; |
||
22 | |||
23 | /** |
||
24 | * Centres sur la commune. |
||
25 | * |
||
26 | * @var SDIS62\Core\Ops\Entity\Centre[] |
||
27 | */ |
||
28 | protected $centres; |
||
29 | |||
30 | /** |
||
31 | * Création d'une commune. |
||
32 | * |
||
33 | * @param string name |
||
34 | * @param string numinsee |
||
35 | */ |
||
36 | public function __construct($name, $numinsee) |
||
42 | |||
43 | /** |
||
44 | * Get the value of Code insee de la commune. |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getNuminsee() |
||
52 | |||
53 | /** |
||
54 | * Get the value of Nom de la commune. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getName() |
||
62 | |||
63 | /** |
||
64 | * Set the value of Nom de la commune. |
||
65 | * |
||
66 | * @param string name |
||
67 | * |
||
68 | * @return self |
||
69 | */ |
||
70 | public function setName($name) |
||
76 | |||
77 | /** |
||
78 | * Retourne les centres sur la commune. |
||
79 | * |
||
80 | * @return SDIS62\Core\Ops\Entity\Centre[] |
||
81 | */ |
||
82 | public function getCentres() |
||
86 | |||
87 | /** |
||
88 | * Ajoute un centre sur la commune. |
||
89 | * |
||
90 | * @param SDIS62\Core\Ops\Entity\Centre $centre |
||
91 | * |
||
92 | * @return self |
||
93 | */ |
||
94 | public function addCentre(Centre $centre) |
||
100 | } |
||
101 |
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..