Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Diff\EntityPatcher Class Reference

Public Member Functions

 __construct ()
 
 registerEntityPatcherStrategy (EntityPatcherStrategy $patcherStrategy)
 
 patchEntity (EntityDocument $entity, EntityDiff $patch)
 

Private Member Functions

 getPatcherStrategy ( $entityType)
 

Private Attributes

 $patcherStrategies
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getPatcherStrategy()

Wikibase\DataModel\Services\Diff\EntityPatcher::getPatcherStrategy ( $entityType)
private
Parameters
string$entityType
Exceptions
RuntimeException
Returns
EntityPatcherStrategy

◆ patchEntity()

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

◆ registerEntityPatcherStrategy()

Wikibase\DataModel\Services\Diff\EntityPatcher::registerEntityPatcherStrategy ( EntityPatcherStrategy $patcherStrategy)

Member Data Documentation

◆ $patcherStrategies

Wikibase\DataModel\Services\Diff\EntityPatcher::$patcherStrategies
private

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