1 | <?php |
||
10 | final class Denormalizer implements DenormalizerInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var DenormalizingObjectMappingInterface[] |
||
14 | */ |
||
15 | private $objectMappings; |
||
16 | |||
17 | /** |
||
18 | * @param DenormalizingObjectMappingInterface[] $objectMappings |
||
19 | */ |
||
20 | public function __construct(array $objectMappings) |
||
27 | |||
28 | /** |
||
29 | * @param DenormalizingObjectMappingInterface $objectMapping |
||
30 | */ |
||
31 | private function addObjectMapping(DenormalizingObjectMappingInterface $objectMapping) |
||
35 | |||
36 | /** |
||
37 | * @param object $object |
||
38 | * @param array $data |
||
39 | * @param DenormalizerContextInterface $context |
||
40 | * @param string $path |
||
41 | * |
||
42 | * @return object |
||
43 | * |
||
44 | * @throws DenormalizerException |
||
45 | */ |
||
46 | public function denormalize($object, array $data, DenormalizerContextInterface $context, string $path = '') |
||
78 | |||
79 | /** |
||
80 | * @param string $class |
||
81 | * |
||
82 | * @return DenormalizingObjectMappingInterface |
||
83 | */ |
||
84 | private function getObjectMapping(string $class): DenormalizingObjectMappingInterface |
||
92 | |||
93 | /** |
||
94 | * @param DenormalizingObjectMappingInterface $objectMapping |
||
95 | * |
||
96 | * @return DenormalizingFieldMappingInterface[] |
||
97 | */ |
||
98 | private function getFieldDenormalizerMappings(DenormalizingObjectMappingInterface $objectMapping): array |
||
107 | |||
108 | /** |
||
109 | * @param DenormalizerContextInterface $context |
||
110 | * @param FieldDenormalizerInterface $fieldDenormalizer |
||
111 | * |
||
112 | * @return bool |
||
113 | */ |
||
114 | private function isWithinGroup( |
||
130 | } |
||
131 |