Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Serializers\StatementSerializer Class Reference

Package private. More...

+ Inheritance diagram for Wikibase\DataModel\Serializers\StatementSerializer:
+ Collaboration diagram for Wikibase\DataModel\Serializers\StatementSerializer:

Public Member Functions

 __construct (Serializer $mainSnakSerializer, Serializer $qualifierSnaksSerializer, Serializer $referencesSerializer)
 
 isSerializerFor ( $object)
 
 serialize ( $object)
 

Private Member Functions

 getSerialized (Statement $statement)
 
 addGuidToSerialization (Statement $statement, array &$serialization)
 
 addRankToSerialization (Statement $statement, array &$serialization)
 
 addReferencesToSerialization (Statement $statement, array &$serialization)
 
 addQualifiersToSerialization (Statement $statement, &$serialization)
 

Private Attributes

 $rankLabels
 
 $mainSnakSerializer
 
 $qualifierSnaksSerializer
 
 $referencesSerializer
 

Detailed Description

Package private.

Author
Thomas Pellissier Tanon

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Serializers\StatementSerializer::__construct ( Serializer  $mainSnakSerializer,
Serializer  $qualifierSnaksSerializer,
Serializer  $referencesSerializer 
)

Member Function Documentation

◆ addGuidToSerialization()

Wikibase\DataModel\Serializers\StatementSerializer::addGuidToSerialization ( Statement  $statement,
array &  $serialization 
)
private

◆ addQualifiersToSerialization()

Wikibase\DataModel\Serializers\StatementSerializer::addQualifiersToSerialization ( Statement  $statement,
$serialization 
)
private

◆ addRankToSerialization()

Wikibase\DataModel\Serializers\StatementSerializer::addRankToSerialization ( Statement  $statement,
array &  $serialization 
)
private

◆ addReferencesToSerialization()

Wikibase\DataModel\Serializers\StatementSerializer::addReferencesToSerialization ( Statement  $statement,
array &  $serialization 
)
private

◆ getSerialized()

Wikibase\DataModel\Serializers\StatementSerializer::getSerialized ( Statement  $statement)
private

◆ isSerializerFor()

Wikibase\DataModel\Serializers\StatementSerializer::isSerializerFor (   $object)
See also
Serializer::isSerializerFor
Parameters
mixed$object
Returns
bool

◆ serialize()

Wikibase\DataModel\Serializers\StatementSerializer::serialize (   $object)
See also
Serializer::serialize
Parameters
Statement$object
Exceptions
SerializationException
Returns
array

Member Data Documentation

◆ $mainSnakSerializer

Wikibase\DataModel\Serializers\StatementSerializer::$mainSnakSerializer
private

◆ $qualifierSnaksSerializer

Wikibase\DataModel\Serializers\StatementSerializer::$qualifierSnaksSerializer
private

◆ $rankLabels

Wikibase\DataModel\Serializers\StatementSerializer::$rankLabels
private
Initial value:
= [
Statement::RANK_DEPRECATED => 'deprecated',
Statement::RANK_NORMAL => 'normal',
Statement::RANK_PREFERRED => 'preferred',
]

◆ $referencesSerializer

Wikibase\DataModel\Serializers\StatementSerializer::$referencesSerializer
private

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