1 | <?php |
||
14 | class Character |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\Id |
||
18 | * @ORM\GeneratedValue |
||
19 | * @ORM\Column(type="integer") |
||
20 | * |
||
21 | * @JMS\Groups({"characters"}) |
||
22 | * @JMS\Expose |
||
23 | */ |
||
24 | private $id; |
||
25 | |||
26 | /** |
||
27 | * @ORM\Column(type="string") |
||
28 | * |
||
29 | * @JMS\Groups({"characters"}) |
||
30 | * @JMS\Expose |
||
31 | */ |
||
32 | private $code = ''; |
||
33 | |||
34 | /** |
||
35 | * @ORM\Column(type="string") |
||
36 | * |
||
37 | * @JMS\Groups({"characters"}) |
||
38 | * @JMS\Expose |
||
39 | */ |
||
40 | private $name = ''; |
||
41 | |||
42 | /** |
||
43 | * @ORM\Column(type="integer") |
||
44 | * |
||
45 | * @JMS\Groups({"characters"}) |
||
46 | * @JMS\Expose |
||
47 | */ |
||
48 | private $side = 0; |
||
49 | |||
50 | /** |
||
51 | * @ORM\Column(type="string") |
||
52 | * |
||
53 | * @JMS\Groups({"characters"}) |
||
54 | * @JMS\Expose |
||
55 | */ |
||
56 | private $image = ''; |
||
57 | |||
58 | /** |
||
59 | * @ORM\Column(type="string") |
||
60 | * |
||
61 | * @JMS\Groups({"characters"}) |
||
62 | * @JMS\Expose |
||
63 | */ |
||
64 | private $description = ''; |
||
65 | |||
66 | /** |
||
67 | * @ORM\Column(type="json_array") |
||
68 | */ |
||
69 | private $tags = ''; |
||
70 | |||
71 | /** |
||
72 | * Get id. |
||
73 | * |
||
74 | * @return int |
||
75 | */ |
||
76 | public function getId() |
||
80 | |||
81 | /** |
||
82 | * Set code. |
||
83 | * |
||
84 | * @param string $code |
||
85 | * |
||
86 | * @return Character |
||
87 | */ |
||
88 | public function setCode($code) |
||
94 | |||
95 | /** |
||
96 | * Get code. |
||
97 | * |
||
98 | * @return string |
||
99 | */ |
||
100 | public function getCode() |
||
104 | |||
105 | /** |
||
106 | * Set name. |
||
107 | * |
||
108 | * @param string $name |
||
109 | * |
||
110 | * @return Character |
||
111 | */ |
||
112 | public function setName($name) |
||
118 | |||
119 | /** |
||
120 | * Get name. |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | public function getName() |
||
128 | |||
129 | /** |
||
130 | * Set side. |
||
131 | * |
||
132 | * @param int $side |
||
133 | * |
||
134 | * @return Character |
||
135 | */ |
||
136 | public function setSide($side) |
||
142 | |||
143 | /** |
||
144 | * Get side. |
||
145 | * |
||
146 | * @return int |
||
147 | */ |
||
148 | public function getSide() |
||
152 | |||
153 | /** |
||
154 | * Set image. |
||
155 | * |
||
156 | * @param string $image |
||
157 | * |
||
158 | * @return Character |
||
159 | */ |
||
160 | public function setImage($image) |
||
166 | |||
167 | /** |
||
168 | * Get image. |
||
169 | * |
||
170 | * @return string |
||
171 | */ |
||
172 | public function getImage() |
||
176 | |||
177 | /** |
||
178 | * Set description. |
||
179 | * |
||
180 | * @param string $description |
||
181 | * |
||
182 | * @return Character |
||
183 | */ |
||
184 | public function setDescription($description) |
||
190 | |||
191 | /** |
||
192 | * Get description. |
||
193 | * |
||
194 | * @return string |
||
195 | */ |
||
196 | public function getDescription() |
||
200 | |||
201 | /** |
||
202 | * Set tags. |
||
203 | * |
||
204 | * @param array $tags |
||
205 | * |
||
206 | * @return Character |
||
207 | */ |
||
208 | public function setTags($tags) |
||
214 | |||
215 | /** |
||
216 | * Get tags. |
||
217 | * |
||
218 | * @return array |
||
219 | */ |
||
220 | public function getTags() |
||
224 | } |
||
225 |
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..