Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Services\Diff\ItemDiffer Class Reference
+ Inheritance diagram for Wikibase\DataModel\Services\Diff\ItemDiffer:
+ Collaboration diagram for Wikibase\DataModel\Services\Diff\ItemDiffer:

Public Member Functions

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

Private Member Functions

 assertIsItem (EntityDocument $item)
 
 toDiffArray (Item $item)
 
 getSiteLinksInDiffFormat (SiteLinkList $siteLinks)
 

Private Attributes

 $recursiveMapDiffer
 
 $statementListDiffer
 

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

Member Function Documentation

◆ assertIsItem()

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

◆ canDiffEntityType()

Wikibase\DataModel\Services\Diff\ItemDiffer::canDiffEntityType (   $entityType)
Parameters
string$entityType
Returns
bool

Implements Wikibase\DataModel\Services\Diff\EntityDifferStrategy.

◆ diffEntities()

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

Implements Wikibase\DataModel\Services\Diff\EntityDifferStrategy.

◆ diffItems()

Wikibase\DataModel\Services\Diff\ItemDiffer::diffItems ( Item  $from,
Item  $to 
)

◆ getConstructionDiff()

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

Implements Wikibase\DataModel\Services\Diff\EntityDifferStrategy.

◆ getDestructionDiff()

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

Implements Wikibase\DataModel\Services\Diff\EntityDifferStrategy.

◆ getSiteLinksInDiffFormat()

Wikibase\DataModel\Services\Diff\ItemDiffer::getSiteLinksInDiffFormat ( SiteLinkList  $siteLinks)
private

◆ toDiffArray()

Wikibase\DataModel\Services\Diff\ItemDiffer::toDiffArray ( Item  $item)
private

Member Data Documentation

◆ $recursiveMapDiffer

Wikibase\DataModel\Services\Diff\ItemDiffer::$recursiveMapDiffer
private

◆ $statementListDiffer

Wikibase\DataModel\Services\Diff\ItemDiffer::$statementListDiffer
private

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