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 $idField; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | public $service; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | public $controller; |
||
41 | |||
42 | /** |
||
43 | * @var Method[]|null |
||
44 | */ |
||
45 | public $methods; |
||
46 | |||
47 | 34 | public function __construct($name) |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 8 | public function merge(MergeableInterface $object) |
|
83 | |||
84 | /** |
||
85 | * @param bool $restResource |
||
86 | */ |
||
87 | 34 | public function setRestResource($restResource) |
|
91 | |||
92 | /** |
||
93 | * @return boolean |
||
94 | */ |
||
95 | 26 | public function isRestResource() |
|
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | 6 | public function getNamePrefix() |
|
107 | |||
108 | /** |
||
109 | * @param string $namePrefix |
||
110 | */ |
||
111 | public function setNamePrefix($namePrefix) |
||
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | 6 | public function getPathPrefix() |
|
123 | |||
124 | /** |
||
125 | * @param string $pathPrefix |
||
126 | */ |
||
127 | 24 | public function setPathPrefix(string $pathPrefix) |
|
131 | |||
132 | /** |
||
133 | * @return string |
||
134 | */ |
||
135 | 6 | public function getController() |
|
139 | |||
140 | /** |
||
141 | * @param string $controller |
||
142 | */ |
||
143 | public function setController($controller) |
||
147 | |||
148 | /** |
||
149 | * @return string |
||
150 | */ |
||
151 | 6 | public function getService() |
|
155 | |||
156 | /** |
||
157 | * @param string $service |
||
158 | */ |
||
159 | public function setService($service) |
||
163 | |||
164 | /** |
||
165 | * @return Method[] |
||
166 | */ |
||
167 | public function getMethods() |
||
171 | |||
172 | /** |
||
173 | * @param string[] $methods |
||
174 | */ |
||
175 | 34 | public function setMethods(array $methods) |
|
179 | |||
180 | 34 | public function getPropertyMetadata(string $property): ?PropertyMetadata |
|
188 | |||
189 | /** |
||
190 | * @param MergeableInterface $object |
||
191 | * |
||
192 | * @return array |
||
193 | */ |
||
194 | 8 | protected function mergePropertyMetadata(MergeableInterface $object): array |
|
211 | |||
212 | 32 | public function getMethod(string $methodName): ?Method |
|
226 | |||
227 | 24 | public function hasMethod($methodName) |
|
231 | |||
232 | 8 | private function mergeField($existing, $toMerge) |
|
240 | |||
241 | 2 | public function getIdField(string $default = 'id'): string |
|
249 | } |
||
250 |
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..