Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Diff\ItemPatcher Class Reference
+ Inheritance diagram for Wikibase\DataModel\Services\Diff\ItemPatcher:
+ Collaboration diagram for Wikibase\DataModel\Services\Diff\ItemPatcher:

Public Member Functions

 __construct ()
 
 canPatchEntityType ( $entityType)
 
 patchEntity (EntityDocument $entity, EntityDiff $patch)
 

Private Member Functions

 assertIsItem (EntityDocument $item)
 
 patchItem (Item $item, EntityDiff $patch)
 

Private Attributes

 $fingerprintPatcher
 
 $statementListPatcher
 
 $siteLinkListPatcher
 

Detailed Description

Since
1.0
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\Diff\ItemPatcher::__construct ( )

Member Function Documentation

◆ assertIsItem()

Wikibase\DataModel\Services\Diff\ItemPatcher::assertIsItem ( EntityDocument $item)
private

◆ canPatchEntityType()

Wikibase\DataModel\Services\Diff\ItemPatcher::canPatchEntityType ( $entityType)
Parameters
string$entityType
Returns
bool

Implements Wikibase\DataModel\Services\Diff\EntityPatcherStrategy.

◆ patchEntity()

Wikibase\DataModel\Services\Diff\ItemPatcher::patchEntity ( EntityDocument $entity,
EntityDiff $patch )
Parameters
EntityDocument$entity
EntityDiff$patch
Exceptions
InvalidArgumentException

Implements Wikibase\DataModel\Services\Diff\EntityPatcherStrategy.

◆ patchItem()

Wikibase\DataModel\Services\Diff\ItemPatcher::patchItem ( Item $item,
EntityDiff $patch )
private

Member Data Documentation

◆ $fingerprintPatcher

Wikibase\DataModel\Services\Diff\ItemPatcher::$fingerprintPatcher
private

◆ $siteLinkListPatcher

Wikibase\DataModel\Services\Diff\ItemPatcher::$siteLinkListPatcher
private

◆ $statementListPatcher

Wikibase\DataModel\Services\Diff\ItemPatcher::$statementListPatcher
private

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