1 | <?php |
||
12 | final class DenormalizerObjectMappingRegistry implements DenormalizerObjectMappingRegistryInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var DenormalizationObjectMappingInterface[] |
||
16 | */ |
||
17 | private $objectMappings; |
||
18 | |||
19 | /** |
||
20 | * @param array $objectMappings |
||
21 | */ |
||
22 | 3 | public function __construct(array $objectMappings) |
|
29 | |||
30 | /** |
||
31 | * @param DenormalizationObjectMappingInterface $objectMapping |
||
32 | */ |
||
33 | 2 | private function addObjectMapping(DenormalizationObjectMappingInterface $objectMapping) |
|
37 | |||
38 | /** |
||
39 | * @param string $class |
||
40 | * |
||
41 | * @return DenormalizationObjectMappingInterface |
||
42 | * |
||
43 | * @throws DeserializerLogicException |
||
44 | */ |
||
45 | 3 | public function getObjectMapping(string $class): DenormalizationObjectMappingInterface |
|
72 | } |
||
73 |
If you suppress an error, we recommend checking for the error condition explicitly: