1 | <?php |
||
15 | class EntityDeserializer implements Deserializer { |
||
16 | |||
17 | /** |
||
18 | * @var DispatchableDeserializer |
||
19 | */ |
||
20 | private $legacyDeserializer; |
||
21 | |||
22 | /** |
||
23 | * @var DispatchableDeserializer |
||
24 | */ |
||
25 | private $currentDeserializer; |
||
26 | |||
27 | public function __construct( |
||
28 | DispatchableDeserializer $legacyDeserializer, |
||
29 | DispatchableDeserializer $currentDeserializer |
||
30 | ) { |
||
31 | $this->legacyDeserializer = $legacyDeserializer; |
||
32 | $this->currentDeserializer = $currentDeserializer; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param array $serialization |
||
37 | * |
||
38 | * @return EntityDocument |
||
39 | * @throws DeserializationException |
||
40 | */ |
||
41 | public function deserialize( $serialization ) { |
||
54 | |||
55 | private function fromUnknownSerialization( array $serialization ) { |
||
70 | |||
71 | } |
||
72 |