1 | <?php |
||
9 | class ClassMetadata extends MergeableClassMetadata |
||
10 | { |
||
11 | /** |
||
12 | * @var bool |
||
13 | */ |
||
14 | public $restResource; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | public $namePrefix; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | public $pathPrefix; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public $service; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | public $controller; |
||
35 | |||
36 | /** |
||
37 | * @var Method[]|null |
||
38 | */ |
||
39 | public $methods; |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 6 | public function merge(MergeableInterface $object) |
|
68 | |||
69 | /** |
||
70 | * @param bool $restResource |
||
71 | */ |
||
72 | 34 | public function setRestResource($restResource) |
|
76 | |||
77 | /** |
||
78 | * @return boolean |
||
79 | */ |
||
80 | 4 | public function isRestResource() |
|
84 | |||
85 | /** |
||
86 | * @return string |
||
87 | */ |
||
88 | 4 | public function getNamePrefix() |
|
92 | |||
93 | /** |
||
94 | * @param string $namePrefix |
||
95 | */ |
||
96 | public function setNamePrefix($namePrefix) |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | 4 | public function getPathPrefix() |
|
108 | |||
109 | /** |
||
110 | * @param string $pathPrefix |
||
111 | */ |
||
112 | 24 | public function setPathPrefix(string $pathPrefix) |
|
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | 4 | public function getController() |
|
124 | |||
125 | /** |
||
126 | * @param string $controller |
||
127 | */ |
||
128 | public function setController($controller) |
||
132 | |||
133 | /** |
||
134 | * @return string |
||
135 | */ |
||
136 | 4 | public function getService() |
|
140 | |||
141 | /** |
||
142 | * @param string $service |
||
143 | */ |
||
144 | 4 | public function setService($service) |
|
148 | |||
149 | /** |
||
150 | * @return Method[] |
||
151 | */ |
||
152 | public function getMethods() |
||
156 | |||
157 | /** |
||
158 | * @param string[] $methods |
||
159 | */ |
||
160 | 34 | public function setMethods(array $methods) |
|
164 | |||
165 | 34 | public function getPropertyMetadata(string $property): ?PropertyMetadata |
|
173 | |||
174 | /** |
||
175 | * @param MergeableInterface $object |
||
176 | * |
||
177 | * @return array |
||
178 | */ |
||
179 | 6 | protected function mergePropertyMetadata(MergeableInterface $object): array |
|
196 | |||
197 | 24 | public function getMethod(string $methodName): ?Method |
|
211 | } |
||
212 |
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..