Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Diff\ClaimDiffer Class Reference

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

Public Member Functions

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

Private Member Functions

 diffMainSnaks (Statement $oldStatement=null, Statement $newStatement=null)
 
 diffQualifiers (Statement $oldStatement=null, Statement $newStatement=null)
 
 diffRanks (Statement $oldStatement=null, Statement $newStatement=null)
 
 diffReferences (Statement $oldStatement=null, Statement $newStatement=null)
 

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 = null,
Statement  $newStatement = null 
)

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 = null,
Statement  $newStatement = null 
)
private
Parameters
Statement | null$oldStatement
Statement | null$newStatement
Returns
DiffOpChange|null

◆ diffQualifiers()

Wikibase\Repo\Diff\ClaimDiffer::diffQualifiers ( Statement  $oldStatement = null,
Statement  $newStatement = null 
)
private
Parameters
Statement | null$oldStatement
Statement | null$newStatement
Returns
Diff

◆ diffRanks()

Wikibase\Repo\Diff\ClaimDiffer::diffRanks ( Statement  $oldStatement = null,
Statement  $newStatement = null 
)
private
Parameters
Statement | null$oldStatement
Statement | null$newStatement
Returns
DiffOpChange|null

◆ diffReferences()

Wikibase\Repo\Diff\ClaimDiffer::diffReferences ( Statement  $oldStatement = null,
Statement  $newStatement = null 
)
private
Parameters
Statement | null$oldStatement
Statement | null$newStatement
Returns
Diff

Member Data Documentation

◆ $listDiffer

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

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