1 | <?php |
||
21 | class ClassMetadata implements \Serializable, ClassMetadataInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $className; |
||
27 | |||
28 | /** |
||
29 | * @var \ReflectionClass |
||
30 | */ |
||
31 | protected $reflection; |
||
32 | |||
33 | /** |
||
34 | * @var ArrayHashMapInterface |
||
35 | */ |
||
36 | protected $methodsMetadata; |
||
37 | |||
38 | /** |
||
39 | * @var ArrayHashMapInterface |
||
40 | */ |
||
41 | protected $propertiesMetadata; |
||
42 | |||
43 | /** |
||
44 | * @var ArrayHashMapInterface |
||
45 | */ |
||
46 | protected $metadata; |
||
47 | |||
48 | /** |
||
49 | * ClassMetadata constructor. |
||
50 | * |
||
51 | * @param string $className |
||
52 | */ |
||
53 | public function __construct($className) |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function className() |
||
70 | |||
71 | /** |
||
72 | * @return \ReflectionClass |
||
73 | */ |
||
74 | public function reflection() |
||
78 | |||
79 | /** |
||
80 | * @return array |
||
81 | */ |
||
82 | public function methodsMetadata() |
||
86 | |||
87 | /** |
||
88 | * @param MethodMetadata $metadata |
||
89 | */ |
||
90 | public function addMethodMetadata(MethodMetadata $metadata) |
||
94 | |||
95 | /** |
||
96 | * @param string $methodName |
||
97 | * |
||
98 | * @return MethodMetadata|null |
||
99 | */ |
||
100 | public function methodMetadata($methodName) |
||
104 | |||
105 | /** |
||
106 | * @return array |
||
107 | */ |
||
108 | public function propertiesMetadata() |
||
112 | |||
113 | /** |
||
114 | * @param PropertyMetadata $metadata |
||
115 | */ |
||
116 | public function addPropertyMetadata(PropertyMetadata $metadata) |
||
120 | |||
121 | /** |
||
122 | * @param string $propertyName |
||
123 | * |
||
124 | * @return PropertyMetadata|null |
||
125 | */ |
||
126 | public function propertyMetadata($propertyName) |
||
130 | |||
131 | /** |
||
132 | * @return array |
||
133 | */ |
||
134 | public function metadata() |
||
138 | |||
139 | /** |
||
140 | * @param string $key |
||
141 | * @param mixed $value |
||
142 | */ |
||
143 | public function addMetadata($key, $value) |
||
147 | |||
148 | /** |
||
149 | * @param string $key |
||
150 | * |
||
151 | * @return mixed|null |
||
152 | */ |
||
153 | public function getMetadata($key) |
||
157 | |||
158 | /** |
||
159 | * @param ClassMetadataInterface $object |
||
160 | * |
||
161 | * @return ClassMetadataInterface |
||
162 | */ |
||
163 | public function merge(ClassMetadataInterface $object) |
||
180 | |||
181 | /** |
||
182 | * {@inheritdoc} |
||
183 | */ |
||
184 | public function serialize() |
||
193 | |||
194 | /** |
||
195 | * {@inheritdoc} |
||
196 | */ |
||
197 | public function unserialize($str) |
||
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..