Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Diff\ClaimDiffer Class Reference

Class for generating a ClaimDifference given two statements. More...

Public Member Functions

 __construct (Differ $listDiffer)
 
 diffClaims (?Statement $oldStatement, ?Statement $newStatement)
 Calculates diff of two Statements and stores the difference in a ClaimDifference. More...
 

Private Member Functions

 diffMainSnaks (?Statement $oldStatement, ?Statement $newStatement)
 
 diffQualifiers (?Statement $oldStatement, ?Statement $newStatement)
 
 diffRanks (?Statement $oldStatement, ?Statement $newStatement)
 
 diffReferences (?Statement $oldStatement, ?Statement $newStatement)
 

Private Attributes

 $listDiffer
 

Detailed Description

Class for generating a ClaimDifference given two statements.

Author
Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
Addshore
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Diff\ClaimDiffer::__construct ( Differ  $listDiffer)

Member Function Documentation

◆ diffClaims()

Wikibase\Repo\Diff\ClaimDiffer::diffClaims ( ?Statement  $oldStatement,
?Statement  $newStatement 
)

Calculates diff of two Statements and stores the difference in a ClaimDifference.

Parameters
Statement | null$oldStatement
Statement | null$newStatement
Returns
ClaimDifference

◆ diffMainSnaks()

Wikibase\Repo\Diff\ClaimDiffer::diffMainSnaks ( ?Statement  $oldStatement,
?Statement  $newStatement 
)
private

◆ diffQualifiers()

Wikibase\Repo\Diff\ClaimDiffer::diffQualifiers ( ?Statement  $oldStatement,
?Statement  $newStatement 
)
private

◆ diffRanks()

Wikibase\Repo\Diff\ClaimDiffer::diffRanks ( ?Statement  $oldStatement,
?Statement  $newStatement 
)
private

◆ diffReferences()

Wikibase\Repo\Diff\ClaimDiffer::diffReferences ( ?Statement  $oldStatement,
?Statement  $newStatement 
)
private

Member Data Documentation

◆ $listDiffer

Wikibase\Repo\Diff\ClaimDiffer::$listDiffer
private

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