WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer Class Reference

Deserializer for lemma change request data. More...

+ Inheritance diagram for Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer:
+ Collaboration diagram for Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer:

Public Member Functions

 __construct (LexemeTermSerializationValidator $termChangeOpSerializationValidator, LemmaTermValidator $lemmaTermValidator, StringNormalizer $stringNormalizer)
 
 createEntityChangeOp (array $changeRequest)
 

Private Member Functions

 assertIsArray ( $lemmaSerialization)
 

Private Attributes

 $lemmaTermValidator
 
 $stringNormalizer
 
 $termSerializationValidator
 
const LEMMAS_PARAM = 'lemmas'
 

Detailed Description

Deserializer for lemma change request data.

See also
docs/change-op-serialization.wiki for a description of the serialization format.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer::__construct ( LexemeTermSerializationValidator $termChangeOpSerializationValidator,
LemmaTermValidator $lemmaTermValidator,
StringNormalizer $stringNormalizer )

Member Function Documentation

◆ assertIsArray()

Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer::assertIsArray ( $lemmaSerialization)
private

◆ createEntityChangeOp()

Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer::createEntityChangeOp ( array $changeRequest)
See also
ChangeOpDeserializer::createEntityChangeOp
Parameters
array$changeRequest
Exceptions
ChangeOpDeserializationException
Returns
ChangeOp

Member Data Documentation

◆ $lemmaTermValidator

Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer::$lemmaTermValidator
private

◆ $stringNormalizer

Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer::$stringNormalizer
private

◆ $termSerializationValidator

Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer::$termSerializationValidator
private

◆ LEMMAS_PARAM

const Wikibase\Lexeme\Presentation\ChangeOp\Deserialization\LemmaChangeOpDeserializer::LEMMAS_PARAM = 'lemmas'
private

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