Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Deserializers\StatementDeserializer Class Reference

Package private. More...

+ Inheritance diagram for Wikibase\DataModel\Deserializers\StatementDeserializer:
+ Collaboration diagram for Wikibase\DataModel\Deserializers\StatementDeserializer:

Public Member Functions

 __construct (Deserializer $snakDeserializer, Deserializer $snaksDeserializer, Deserializer $referencesDeserializer)
 
 isDeserializerFor ( $serialization)
 
 deserialize ( $serialization)
 

Private Member Functions

 isValidStatementType ( $statementType)
 
 setGuidFromSerialization (array $serialization, Statement $statement)
 
 setRankFromSerialization (array $serialization, Statement $statement)
 
 assertQualifiersOrderIsArray (array $serialization)
 

Private Attributes

 $snakDeserializer
 
 $snaksDeserializer
 
 $referencesDeserializer
 

Static Private Attributes

static $rankIds
 

Detailed Description

Package private.

Author
Thomas Pellissier Tanon

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Deserializers\StatementDeserializer::__construct ( Deserializer  $snakDeserializer,
Deserializer  $snaksDeserializer,
Deserializer  $referencesDeserializer 
)

Member Function Documentation

◆ assertQualifiersOrderIsArray()

Wikibase\DataModel\Deserializers\StatementDeserializer::assertQualifiersOrderIsArray ( array  $serialization)
private

◆ deserialize()

Wikibase\DataModel\Deserializers\StatementDeserializer::deserialize (   $serialization)
See also
Deserializer::deserialize
Parameters
array$serialization
Exceptions
DeserializationException
Returns
Statement

◆ isDeserializerFor()

Wikibase\DataModel\Deserializers\StatementDeserializer::isDeserializerFor (   $serialization)
See also
DispatchableDeserializer::isDeserializerFor
Parameters
mixed$serialization
Returns
bool

◆ isValidStatementType()

Wikibase\DataModel\Deserializers\StatementDeserializer::isValidStatementType (   $statementType)
private
Parameters
string$statementType
Returns
bool

◆ setGuidFromSerialization()

Wikibase\DataModel\Deserializers\StatementDeserializer::setGuidFromSerialization ( array  $serialization,
Statement  $statement 
)
private

◆ setRankFromSerialization()

Wikibase\DataModel\Deserializers\StatementDeserializer::setRankFromSerialization ( array  $serialization,
Statement  $statement 
)
private

Member Data Documentation

◆ $rankIds

Wikibase\DataModel\Deserializers\StatementDeserializer::$rankIds
staticprivate
Initial value:
= [
'deprecated' => Statement::RANK_DEPRECATED,
]
const RANK_PREFERRED
Rank enum.
Definition: Statement.php:29
const RANK_NORMAL
Definition: Statement.php:30
const RANK_DEPRECATED
Definition: Statement.php:31

◆ $referencesDeserializer

Wikibase\DataModel\Deserializers\StatementDeserializer::$referencesDeserializer
private

◆ $snakDeserializer

Wikibase\DataModel\Deserializers\StatementDeserializer::$snakDeserializer
private

◆ $snaksDeserializer

Wikibase\DataModel\Deserializers\StatementDeserializer::$snaksDeserializer
private

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