Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Services\Diff\EntityDifferStrategy Interface Reference
+ Inheritance diagram for Wikibase\DataModel\Services\Diff\EntityDifferStrategy:

Public Member Functions

 canDiffEntityType ( $entityType)
 
 diffEntities (EntityDocument $from, EntityDocument $to)
 
 getConstructionDiff (EntityDocument $entity)
 
 getDestructionDiff (EntityDocument $entity)
 

Detailed Description

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

Member Function Documentation

◆ canDiffEntityType()

Wikibase\DataModel\Services\Diff\EntityDifferStrategy::canDiffEntityType (   $entityType)
Parameters
string$entityType
Returns
boolean

Implemented in Wikibase\DataModel\Services\Diff\PropertyDiffer, and Wikibase\DataModel\Services\Diff\ItemDiffer.

◆ diffEntities()

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

Implemented in Wikibase\DataModel\Services\Diff\PropertyDiffer, and Wikibase\DataModel\Services\Diff\ItemDiffer.

◆ getConstructionDiff()

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

Implemented in Wikibase\DataModel\Services\Diff\ItemDiffer.

◆ getDestructionDiff()

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

Implemented in Wikibase\DataModel\Services\Diff\ItemDiffer.


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