| 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 | public function __construct(array $objectMappings) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param DenormalizationObjectMappingInterface $objectMapping |
||
| 32 | */ |
||
| 33 | private function addObjectMapping(DenormalizationObjectMappingInterface $objectMapping) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $class |
||
| 40 | * |
||
| 41 | * @return DenormalizationObjectMappingInterface |
||
| 42 | * |
||
| 43 | * @throws DeserializerLogicException |
||
| 44 | */ |
||
| 45 | public function getObjectMapping(string $class): DenormalizationObjectMappingInterface |
||
| 59 | } |
||
| 60 |