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

Constructs ChangeOps for fingerprint (terms) change requests. More...

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

Public Member Functions

 __construct (LabelsChangeOpDeserializer $labelsChangeOpDeserializer, DescriptionsChangeOpDeserializer $descriptionsChangeOpDeserializer, AliasesChangeOpDeserializer $aliasesChangeOpDeserializer, FingerprintChangeOpFactory $fingerprintChangeOpFactory)
 
 createEntityChangeOp (array $changeRequest)
 

Private Attributes

 $fingerprintChangeOpFactory
 
 $labelsChangeOpDeserializer
 
 $descriptionsChangeOpDeserializer
 
 $aliasesChangeOpDeserializer
 

Detailed Description

Constructs ChangeOps for fingerprint (terms) change requests.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\Deserialization\FingerprintChangeOpDeserializer::__construct ( LabelsChangeOpDeserializer $labelsChangeOpDeserializer,
DescriptionsChangeOpDeserializer $descriptionsChangeOpDeserializer,
AliasesChangeOpDeserializer $aliasesChangeOpDeserializer,
FingerprintChangeOpFactory $fingerprintChangeOpFactory )

Member Function Documentation

◆ createEntityChangeOp()

Wikibase\Repo\ChangeOp\Deserialization\FingerprintChangeOpDeserializer::createEntityChangeOp ( array $changeRequest)
Parameters
array[]$changeRequestAn array structure describing a changed entity (or changes to an entity). The array structure is mostly compatible with an actual entity serialization, but may contain additional array keys like "remove" or "add", for example: [ 'label' => [ 'zh' => [ 'remove' ], 'de' => [ 'value' => 'Foo' ] ] ]
Exceptions
ChangeOpDeserializationExceptionwhen the provided array is invalid.
Returns
ChangeOp
See also
NullChangeOp If no change needs to be applied
ChangeOps If series of changes needs to be applied

Implements Wikibase\Repo\ChangeOp\ChangeOpDeserializer.

Member Data Documentation

◆ $aliasesChangeOpDeserializer

Wikibase\Repo\ChangeOp\Deserialization\FingerprintChangeOpDeserializer::$aliasesChangeOpDeserializer
private

◆ $descriptionsChangeOpDeserializer

Wikibase\Repo\ChangeOp\Deserialization\FingerprintChangeOpDeserializer::$descriptionsChangeOpDeserializer
private

◆ $fingerprintChangeOpFactory

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

◆ $labelsChangeOpDeserializer

Wikibase\Repo\ChangeOp\Deserialization\FingerprintChangeOpDeserializer::$labelsChangeOpDeserializer
private

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