Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\InternalSerialization\DeserializerFactory Class Reference

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
 

Detailed Description

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.

Since
1.0
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\InternalSerialization\DeserializerFactory::__construct ( Deserializer $dataValueDeserializer,
EntityIdParser $idParser,
DispatchableDeserializer $currentEntityDeserializer = null )
Parameters
Deserializer$dataValueDeserializer
EntityIdParser$idParser
DispatchableDeserializer | null$currentEntityDeserializerused instead of constructing a new current Deserializer for entities using a current DeserializerFactory.

Member Function Documentation

◆ newClaimDeserializer()

Wikibase\InternalSerialization\DeserializerFactory::newClaimDeserializer ( )
Since
1.1
Deprecated
since 1.4 - use newStatementDeserializer instead
Returns
Deserializer

◆ newEntityDeserializer()

Wikibase\InternalSerialization\DeserializerFactory::newEntityDeserializer ( )
Returns
Deserializer

◆ newStatementDeserializer()

Wikibase\InternalSerialization\DeserializerFactory::newStatementDeserializer ( )
Since
1.4
Returns
Deserializer

Member Data Documentation

◆ $currentEntityDeserializer

Wikibase\InternalSerialization\DeserializerFactory::$currentEntityDeserializer
private

◆ $currentFactory

Wikibase\InternalSerialization\DeserializerFactory::$currentFactory
private

◆ $legacyFactory

Wikibase\InternalSerialization\DeserializerFactory::$legacyFactory
private

The documentation for this class was generated from the following file: