Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Services\Diff\EntityDiffer Class Reference

Public Member Functions

 __construct ()
 
 registerEntityDifferStrategy (EntityDifferStrategy $differStrategy)
 
 diffEntities (EntityDocument $from, EntityDocument $to)
 
 getConstructionDiff (EntityDocument $entity)
 
 getDestructionDiff (EntityDocument $entity)
 

Private Member Functions

 assertTypesMatch (EntityDocument $from, EntityDocument $to)
 
 getDiffStrategy ( $entityType)
 

Private Attributes

 $differStrategies
 

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\EntityDiffer::__construct ( )

Member Function Documentation

◆ assertTypesMatch()

Wikibase\DataModel\Services\Diff\EntityDiffer::assertTypesMatch ( EntityDocument  $from,
EntityDocument  $to 
)
private

◆ diffEntities()

Wikibase\DataModel\Services\Diff\EntityDiffer::diffEntities ( EntityDocument  $from,
EntityDocument  $to 
)
Parameters
EntityDocument$from
EntityDocument$to
Returns
EntityDiff
Exceptions
InvalidArgumentException
RuntimeException

◆ getConstructionDiff()

Wikibase\DataModel\Services\Diff\EntityDiffer::getConstructionDiff ( EntityDocument  $entity)
Parameters
EntityDocument$entity
Returns
EntityDiff
Exceptions
InvalidArgumentException

◆ getDestructionDiff()

Wikibase\DataModel\Services\Diff\EntityDiffer::getDestructionDiff ( EntityDocument  $entity)
Parameters
EntityDocument$entity
Returns
EntityDiff
Exceptions
InvalidArgumentException

◆ getDiffStrategy()

Wikibase\DataModel\Services\Diff\EntityDiffer::getDiffStrategy (   $entityType)
private
Parameters
string$entityType
Exceptions
RuntimeException
Returns
EntityDifferStrategy

◆ registerEntityDifferStrategy()

Wikibase\DataModel\Services\Diff\EntityDiffer::registerEntityDifferStrategy ( EntityDifferStrategy  $differStrategy)

Member Data Documentation

◆ $differStrategies

Wikibase\DataModel\Services\Diff\EntityDiffer::$differStrategies
private

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