Wikibase
MediaWiki Wikibase extension
|
Public interface of the library for constructing deserializers. More...
Public Member Functions | |
__construct (Deserializer $dataValueDeserializer, EntityIdParser $idParser, DispatchableDeserializer $currentEntityDeserializer=null) | |
newEntityDeserializer () | |
newClaimDeserializer () | |
newStatementDeserializer () | |
Private Attributes | |
$legacyFactory | |
$currentFactory | |
$currentEntityDeserializer | |
Public interface of the library for constructing deserializers.
Direct access to deserializers is prohibited, users are only allowed to know about this interface. Also note that the return type of the methods is "Deserializer". You are also not allowed to know which concrete implementation is returned.
The returned deserializers can handle both serializations in the legacy internal format and in the new one.
Wikibase\InternalSerialization\DeserializerFactory::__construct | ( | Deserializer | $dataValueDeserializer, |
EntityIdParser | $idParser, | ||
DispatchableDeserializer | $currentEntityDeserializer = null ) |
Deserializer | $dataValueDeserializer | |
EntityIdParser | $idParser | |
DispatchableDeserializer | null | $currentEntityDeserializer | used instead of constructing a new current Deserializer for entities using a current DeserializerFactory. |
Wikibase\InternalSerialization\DeserializerFactory::newClaimDeserializer | ( | ) |
Wikibase\InternalSerialization\DeserializerFactory::newEntityDeserializer | ( | ) |
Wikibase\InternalSerialization\DeserializerFactory::newStatementDeserializer | ( | ) |
|
private |
|
private |
|
private |