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

Constructs ChangeOps for alias change requests. More...

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

Public Member Functions

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

Private Member Functions

 getAliasesChangeOps (array $aliases)
 
 getIndexedAliases (array $aliasGroups)
 
 buildIndexedAliasesChangeOps (array $indexedAliases)
 
 assertIsArray ( $aliases)
 

Private Attributes

 $fingerprintChangeOpFactory
 
 $stringNormalizer
 
 $validator
 

Detailed Description

Constructs ChangeOps for alias change requests.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ assertIsArray()

Wikibase\Repo\ChangeOp\Deserialization\AliasesChangeOpDeserializer::assertIsArray (   $aliases)
private
Parameters
array[]$aliases
Exceptions
ChangeOpDeserializationException

◆ buildIndexedAliasesChangeOps()

Wikibase\Repo\ChangeOp\Deserialization\AliasesChangeOpDeserializer::buildIndexedAliasesChangeOps ( array  $indexedAliases)
private
Parameters
array[]$indexedAliases
Returns
ChangeOps
Exceptions
ChangeOpDeserializationException

◆ createEntityChangeOp()

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

Implements Wikibase\Repo\ChangeOp\ChangeOpDeserializer.

◆ getAliasesChangeOps()

Wikibase\Repo\ChangeOp\Deserialization\AliasesChangeOpDeserializer::getAliasesChangeOps ( array  $aliases)
private
Parameters
array[]$aliases
Returns
ChangeOps
Exceptions
ChangeOpDeserializationException

◆ getIndexedAliases()

Wikibase\Repo\ChangeOp\Deserialization\AliasesChangeOpDeserializer::getIndexedAliases ( array  $aliasGroups)
private
Parameters
array[]$aliasGroups
Returns
array[]

Member Data Documentation

◆ $fingerprintChangeOpFactory

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

◆ $stringNormalizer

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

◆ $validator

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

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