WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Serialization\StorageLexemeSerializer Class Reference
+ Inheritance diagram for Wikibase\Lexeme\Serialization\StorageLexemeSerializer:
+ Collaboration diagram for Wikibase\Lexeme\Serialization\StorageLexemeSerializer:

Public Member Functions

 __construct (Serializer $termListSerializer, Serializer $statementListSerializer)
 
 isSerializerFor ( $object)
 
 serialize ( $object)
 

Private Member Functions

 getSerialized (Lexeme $lexeme)
 
 serializeForms (FormSet $forms)
 
 serializeSenses (SenseSet $senses)
 

Private Attributes

 $termListSerializer
 
 $statementListSerializer
 
 $formSerializer
 
 $senseSerializer
 

Detailed Description

Author
Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::__construct ( Serializer $termListSerializer,
Serializer $statementListSerializer )

Member Function Documentation

◆ getSerialized()

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::getSerialized ( Lexeme $lexeme)
private
Parameters
Lexeme$lexeme
Exceptions
SerializationException
Returns
array

◆ isSerializerFor()

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::isSerializerFor ( $object)
See also
DispatchableSerializer::isSerializerFor
Parameters
mixed$object
Returns
bool

◆ serialize()

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::serialize ( $object)
See also
Serializer::serialize
Parameters
Lexeme$object
Exceptions
SerializationException
Returns
array

◆ serializeForms()

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::serializeForms ( FormSet $forms)
private
Parameters
FormSet$forms
Returns
array[]

◆ serializeSenses()

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::serializeSenses ( SenseSet $senses)
private
Parameters
SenseSet$senses
Returns
array[]

Member Data Documentation

◆ $formSerializer

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::$formSerializer
private

◆ $senseSerializer

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::$senseSerializer
private

◆ $statementListSerializer

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::$statementListSerializer
private

◆ $termListSerializer

Wikibase\Lexeme\Serialization\StorageLexemeSerializer::$termListSerializer
private

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