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

Factory for merging services. More...

Public Member Functions

 __construct (EntityConstraintProvider $constraintProvider, ChangeOpFactoryProvider $factoryProvider, SiteLookup $siteLookup)
 
 newMergeOps (Item $fromItem, Item $toItem, array $ignoreConflicts=[])
 
 getStatementsMerger ()
 

Private Attributes

 $constraintProvider
 
 $factoryProvider
 
 $siteLookup
 

Detailed Description

Factory for merging services.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Merge\MergeFactory::__construct ( EntityConstraintProvider  $constraintProvider,
ChangeOpFactoryProvider  $factoryProvider,
SiteLookup  $siteLookup 
)

Member Function Documentation

◆ getStatementsMerger()

Wikibase\Repo\Merge\MergeFactory::getStatementsMerger ( )

◆ newMergeOps()

Wikibase\Repo\Merge\MergeFactory::newMergeOps ( Item  $fromItem,
Item  $toItem,
array  $ignoreConflicts = [] 
)
Parameters
Item$fromItem
Item$toItem
string[]$ignoreConflictslist of elements to ignore conflicts for can only contain 'label' and or 'description' and or 'sitelink'
Exceptions
InvalidArgumentException
Returns
ChangeOpsMerge
Todo:
Injecting ChangeOpFactoryProvider is an Abomination Unto Nuggan, we'll need a ItemMergeChangeOpsSequenceBuilder or some such.

Member Data Documentation

◆ $constraintProvider

Wikibase\Repo\Merge\MergeFactory::$constraintProvider
private

◆ $factoryProvider

Wikibase\Repo\Merge\MergeFactory::$factoryProvider
private

◆ $siteLookup

Wikibase\Repo\Merge\MergeFactory::$siteLookup
private

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