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|string $object |
||
38 | * @param array $data |
||
39 | * @param DenormalizerContextInterface|null $context |
||
40 | * @param string $path |
||
41 | * |
||
42 | * @return object |
||
43 | * |
||
44 | * @throws DenormalizerException |
||
45 | */ |
||
46 | public function denormalize($object, array $data, DenormalizerContextInterface $context = null, string $path = '') |
||
87 | |||
88 | /** |
||
89 | * @param string $class |
||
90 | * |
||
91 | * @return DenormalizingObjectMappingInterface |
||
92 | */ |
||
93 | private function getObjectMapping(string $class): DenormalizingObjectMappingInterface |
||
101 | |||
102 | /** |
||
103 | * @param DenormalizerContextInterface $context |
||
104 | * @param DenormalizingFieldMappingInterface $fieldMapping |
||
105 | * |
||
106 | * @return bool |
||
107 | */ |
||
108 | private function isWithinGroup( |
||
124 | |||
125 | /** |
||
126 | * @param string $path |
||
127 | * @param string $name |
||
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | private function getSubPathByName(string $path, string $name): string |
||
135 | |||
136 | /** |
||
137 | * @param string $path |
||
138 | * @param array $names |
||
139 | * |
||
140 | * @return array |
||
141 | */ |
||
142 | private function getSubPathsByNames(string $path, array $names): array |
||
151 | } |
||
152 |