1 | <?php |
||
17 | class MetadataAwareDenormalizer extends SerializerAwareNormalizer implements DenormalizerInterface |
||
|
|||
18 | { |
||
19 | use GroupValidationTrait; |
||
20 | |||
21 | /** |
||
22 | * @var Metadata[] |
||
23 | */ |
||
24 | private $metadata; |
||
25 | |||
26 | /** |
||
27 | * @var PropertyNameConverter |
||
28 | */ |
||
29 | private $propertyNameConverter; |
||
30 | |||
31 | /** |
||
32 | * @param array $metadata |
||
33 | * @param PropertyNameConverter $pnc |
||
34 | */ |
||
35 | public function __construct(array $metadata, PropertyNameConverter $pnc) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function denormalize($data, $class, $format = null, array $context = array()) |
||
71 | |||
72 | /** |
||
73 | * Set the property value. |
||
74 | * |
||
75 | * @param $object |
||
76 | * @param array $meta |
||
77 | * @param $propertyName |
||
78 | * @param $value |
||
79 | * @param array $context |
||
80 | */ |
||
81 | private function setPropertyValue($object, array $meta, $propertyName, $value, array $context) |
||
142 | |||
143 | /** |
||
144 | * Get instance of the class. |
||
145 | * |
||
146 | * @param string $class |
||
147 | * @param array $context |
||
148 | * |
||
149 | * @return object |
||
150 | */ |
||
151 | private function getInstance($class, array $context) |
||
172 | |||
173 | /** |
||
174 | * Get the property name for this normalized key name. This will aslo verify if the name is correct. |
||
175 | * |
||
176 | * @param array $rootMeta |
||
177 | * @param string $serializedName |
||
178 | * |
||
179 | * @return string|null |
||
180 | */ |
||
181 | private function getPropertyName($rootMeta, $serializedName) |
||
195 | |||
196 | /** |
||
197 | * Get the type of this property. |
||
198 | * |
||
199 | * @param array $meta |
||
200 | * @param string $name |
||
201 | * |
||
202 | * @return null|string |
||
203 | */ |
||
204 | private function getPropertyType($meta, $name) |
||
214 | |||
215 | /** |
||
216 | * @param mixed $data |
||
217 | * @param string $type |
||
218 | * @param null $format |
||
219 | * |
||
220 | * @return bool |
||
221 | */ |
||
222 | public function supportsDenormalization($data, $type, $format = null) |
||
226 | |||
227 | /** |
||
228 | * @param string $class |
||
229 | * |
||
230 | * @return Metadata|mixed |
||
231 | */ |
||
232 | private function getMetadata($class) |
||
236 | } |
||
237 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.