| 1 | <?php |
||
| 9 | final class ObjectMappingRegistry implements ObjectMappingRegistryInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ObjectMappingInterface[] |
||
| 13 | */ |
||
| 14 | private $mappings; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ObjectMappingInterface[] $mappings |
||
| 18 | */ |
||
| 19 | 2 | public function __construct(array $mappings) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param ObjectMappingInterface $mapping |
||
| 29 | */ |
||
| 30 | 1 | private function add(ObjectMappingInterface $mapping) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $class |
||
| 37 | * |
||
| 38 | * @return ObjectMappingInterface |
||
| 39 | * |
||
| 40 | * @throws \InvalidArgumentException |
||
| 41 | */ |
||
| 42 | 2 | public function getObjectMappingForClass(string $class): ObjectMappingInterface |
|
| 50 | } |
||
| 51 |