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 | * ClassMetadata constructor. |
||
45 | * |
||
46 | * @param string $className |
||
47 | */ |
||
48 | public function __construct($className) |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function className() |
||
64 | |||
65 | /** |
||
66 | * @return \ReflectionClass |
||
67 | */ |
||
68 | public function reflection() |
||
72 | |||
73 | /** |
||
74 | * @return array |
||
75 | */ |
||
76 | public function methodsMetadata() |
||
80 | |||
81 | /** |
||
82 | * @param MethodMetadata $metadata |
||
83 | */ |
||
84 | public function addMethodMetadata(MethodMetadata $metadata) |
||
88 | |||
89 | /** |
||
90 | * @param string $methodName |
||
91 | * |
||
92 | * @return MethodMetadata|null |
||
93 | */ |
||
94 | public function methodMetadata($methodName) |
||
98 | |||
99 | /** |
||
100 | * @return array |
||
101 | */ |
||
102 | public function propertiesMetadata() |
||
106 | |||
107 | /** |
||
108 | * @param PropertyMetadata $metadata |
||
109 | */ |
||
110 | public function addPropertyMetadata(PropertyMetadata $metadata) |
||
114 | |||
115 | /** |
||
116 | * @param string $propertyName |
||
117 | * |
||
118 | * @return PropertyMetadata|null |
||
119 | */ |
||
120 | public function propertyMetadata($propertyName) |
||
124 | |||
125 | /** |
||
126 | * @param ClassMetadataInterface $object |
||
127 | * |
||
128 | * @return ClassMetadataInterface |
||
129 | */ |
||
130 | public function merge(ClassMetadataInterface $object) |
||
143 | |||
144 | /** |
||
145 | * {@inheritdoc} |
||
146 | */ |
||
147 | public function serialize() |
||
155 | |||
156 | /** |
||
157 | * {@inheritdoc} |
||
158 | */ |
||
159 | public function unserialize($str) |
||
170 | } |
||
171 |
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..