1 | <?php |
||
10 | final class NormalizerObjectMappingRegistry implements NormalizerObjectMappingRegistryInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var NormalizationObjectMappingInterface[] |
||
14 | */ |
||
15 | private $objectMappings; |
||
16 | |||
17 | /** |
||
18 | * @param array $objectMappings |
||
19 | */ |
||
20 | public function __construct(array $objectMappings) |
||
27 | |||
28 | /** |
||
29 | * @param NormalizationObjectMappingInterface $objectMapping |
||
30 | */ |
||
31 | private function addObjectMapping(NormalizationObjectMappingInterface $objectMapping) |
||
35 | |||
36 | /** |
||
37 | * @param string $class |
||
38 | * |
||
39 | * @return NormalizationObjectMappingInterface |
||
40 | * |
||
41 | * @throws SerializerLogicException |
||
42 | */ |
||
43 | public function getObjectMapping(string $class): NormalizationObjectMappingInterface |
||
51 | } |
||
52 |