1 | <?php |
||
10 | class ClassMetadata extends MergeableClassMetadata |
||
11 | { |
||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | public $restResource; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | public $namePrefix; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | public $pathPrefix; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | public $service; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | public $controller; |
||
36 | |||
37 | /** |
||
38 | * @var Right|null |
||
39 | */ |
||
40 | public $postRight; |
||
41 | |||
42 | /** |
||
43 | * @var Right|null |
||
44 | */ |
||
45 | public $putRight; |
||
46 | |||
47 | /** |
||
48 | * @var Right|null |
||
49 | */ |
||
50 | public $deleteRight; |
||
51 | |||
52 | /** |
||
53 | * @var Right|null |
||
54 | */ |
||
55 | public $listRight; |
||
56 | |||
57 | /** |
||
58 | * @var Right|null |
||
59 | */ |
||
60 | public $getRight; |
||
61 | |||
62 | /** |
||
63 | * @var Method[] |
||
64 | */ |
||
65 | public $methods; |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | 6 | public function merge(MergeableInterface $object) |
|
100 | |||
101 | /** |
||
102 | * @param bool $restResource |
||
103 | */ |
||
104 | 34 | public function setRestResource($restResource) |
|
108 | |||
109 | /** |
||
110 | * @return boolean |
||
111 | */ |
||
112 | 4 | public function isRestResource() |
|
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | 4 | public function getNamePrefix() |
|
124 | |||
125 | /** |
||
126 | * @param string $namePrefix |
||
127 | */ |
||
128 | public function setNamePrefix($namePrefix) |
||
132 | |||
133 | /** |
||
134 | * @return string |
||
135 | */ |
||
136 | 4 | public function getPathPrefix() |
|
140 | |||
141 | /** |
||
142 | * @param string $pathPrefix |
||
143 | */ |
||
144 | 24 | public function setPathPrefix(string $pathPrefix) |
|
148 | |||
149 | /** |
||
150 | * @return string |
||
151 | */ |
||
152 | 4 | public function getController() |
|
156 | |||
157 | /** |
||
158 | * @param string $controller |
||
159 | */ |
||
160 | public function setController($controller) |
||
164 | |||
165 | /** |
||
166 | * @return string |
||
167 | */ |
||
168 | 4 | public function getService() |
|
172 | |||
173 | /** |
||
174 | * @param string $service |
||
175 | */ |
||
176 | 4 | public function setService($service) |
|
180 | |||
181 | /** |
||
182 | * @return Right|null |
||
183 | */ |
||
184 | public function getDeleteRight() |
||
188 | |||
189 | /** |
||
190 | * @param Right|null $deleteRight |
||
191 | */ |
||
192 | public function setDeleteRight(Right $deleteRight) |
||
196 | |||
197 | /** |
||
198 | * @return Right|null |
||
199 | */ |
||
200 | public function getPostRight() |
||
204 | |||
205 | /** |
||
206 | * @param Right|null $postRight |
||
207 | */ |
||
208 | public function setPostRight(Right $postRight) |
||
212 | |||
213 | /** |
||
214 | * @return Right|null |
||
215 | */ |
||
216 | public function getPutRight() |
||
220 | |||
221 | /** |
||
222 | * @param Right|null $putRight |
||
223 | */ |
||
224 | public function setPutRight(Right $putRight) |
||
228 | |||
229 | /** |
||
230 | * @return Right|null |
||
231 | */ |
||
232 | public function getListRight() |
||
236 | |||
237 | /** |
||
238 | * @param Right|null $listRight |
||
239 | */ |
||
240 | public function setListRight(Right $listRight) |
||
244 | |||
245 | /** |
||
246 | * @return Right|null |
||
247 | */ |
||
248 | public function getGetRight() |
||
252 | |||
253 | /** |
||
254 | * @param Right|null $getRight |
||
255 | */ |
||
256 | public function setGetRight(Right $getRight) |
||
260 | |||
261 | /** |
||
262 | * @return Method[] |
||
263 | */ |
||
264 | public function getMethods() |
||
268 | |||
269 | /** |
||
270 | * @param string[] $methods |
||
271 | */ |
||
272 | 34 | public function setMethods(array $methods) |
|
276 | |||
277 | 34 | public function getPropertyMetadata(string $property): ?PropertyMetadata |
|
285 | |||
286 | /** |
||
287 | * @param MergeableInterface $object |
||
288 | * |
||
289 | * @return array |
||
290 | */ |
||
291 | 6 | protected function mergePropertyMetadata(MergeableInterface $object): array |
|
308 | |||
309 | 24 | public function getMethod(string $methodName): ?Method |
|
323 | } |
||
324 |
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..