1 | <?php |
||
27 | class DeserializerFactory { |
||
28 | |||
29 | /** |
||
30 | * @var LegacyDeserializerFactory |
||
31 | */ |
||
32 | private $legacyFactory; |
||
33 | |||
34 | /** |
||
35 | * @var CurrentDeserializerFactory |
||
36 | */ |
||
37 | private $currentFactory; |
||
38 | |||
39 | /** |
||
40 | * @var DispatchableDeserializer|null |
||
41 | */ |
||
42 | private $currentEntityDeserializer; |
||
43 | |||
44 | /** |
||
45 | * @param Deserializer $dataValueDeserializer |
||
46 | * @param EntityIdParser $idParser |
||
47 | * @param DispatchableDeserializer|null $currentEntityDeserializer used instead of constructing |
||
48 | * a new current Deserializer for entities using a current DeserializerFactory. |
||
49 | */ |
||
50 | 18 | public function __construct( |
|
59 | |||
60 | /** |
||
61 | * @return Deserializer |
||
62 | */ |
||
63 | 17 | public function newEntityDeserializer() { |
|
69 | |||
70 | /** |
||
71 | * @since 1.1 |
||
72 | * @deprecated since 1.4 - use newStatementDeserializer instead |
||
73 | * |
||
74 | * @return Deserializer |
||
75 | */ |
||
76 | public function newClaimDeserializer() { |
||
77 | return $this->newStatementDeserializer(); |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * @since 1.4 |
||
82 | * |
||
83 | * @return Deserializer |
||
84 | */ |
||
85 | 1 | public function newStatementDeserializer() { |
|
91 | |||
92 | } |
||
93 |