Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer Class Reference

Constructs ChangeOps for label change requests. More...

+ Inheritance diagram for Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer:
+ Collaboration diagram for Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer:

Public Member Functions

 __construct (FingerprintChangeOpFactory $fingerprintChangeOpFactory, StringNormalizer $stringNormalizer, TermChangeOpSerializationValidator $validator)
 
 createEntityChangeOp (array $changeRequest)
 

Private Member Functions

 assertIsArray ( $labels)
 

Private Attributes

 $fingerprintChangeOpFactory
 
 $stringNormalizer
 
 $validator
 

Detailed Description

Constructs ChangeOps for label change requests.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer::__construct ( FingerprintChangeOpFactory $fingerprintChangeOpFactory,
StringNormalizer $stringNormalizer,
TermChangeOpSerializationValidator $validator )

Member Function Documentation

◆ assertIsArray()

Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer::assertIsArray ( $labels)
private
Parameters
array$labels
Exceptions
ChangeOpDeserializationException-assert array $labels

◆ createEntityChangeOp()

Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer::createEntityChangeOp ( array $changeRequest)
See also
ChangeOpDeserializer::createEntityChangeOp
Parameters
array[]$changeRequest
Returns
ChangeOp
Exceptions
ChangeOpDeserializationException

Implements Wikibase\Repo\ChangeOp\ChangeOpDeserializer.

Member Data Documentation

◆ $fingerprintChangeOpFactory

Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer::$fingerprintChangeOpFactory
private

◆ $stringNormalizer

Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer::$stringNormalizer
private

◆ $validator

Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer::$validator
private

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