Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Merge\StatementsMerger Class Reference

Merges statements of two StatementListProvider objects. More...

Public Member Functions

 __construct (StatementChangeOpFactory $changeOpFactory)
 

Private Member Functions

 generateMergeChangeOps (StatementListProvider $source, StatementListProvider $target)
 
 getStatementHash (Statement $statement)
 
 generateRemoveStatementOps (StatementListProvider $source)
 

Private Attributes

 $changeOpFactory
 

Detailed Description

Merges statements of two StatementListProvider objects.

Note that this will not check whether the source and target objects have links.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Merge\StatementsMerger::__construct ( StatementChangeOpFactory $changeOpFactory)

Member Function Documentation

◆ generateMergeChangeOps()

Wikibase\Repo\Merge\StatementsMerger::generateMergeChangeOps ( StatementListProvider $source,
StatementListProvider $target )
private

◆ generateRemoveStatementOps()

Wikibase\Repo\Merge\StatementsMerger::generateRemoveStatementOps ( StatementListProvider $source)
private

◆ getStatementHash()

Wikibase\Repo\Merge\StatementsMerger::getStatementHash ( Statement $statement)
private
Parameters
Statement$statement
Returns
string combined hash of the Mainsnak and Qualifiers

Member Data Documentation

◆ $changeOpFactory

Wikibase\Repo\Merge\StatementsMerger::$changeOpFactory
private

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