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

Represents the difference between two Statement objects. More...

+ Inheritance diagram for Wikibase\Repo\Diff\ClaimDifference:
+ Collaboration diagram for Wikibase\Repo\Diff\ClaimDifference:

Public Member Functions

 __construct (DiffOpChange $mainSnakChange=null, Diff $qualifierChanges=null, Diff $referenceChanges=null, DiffOpChange $rankChange=null)
 
 getReferenceChanges ()
 
 getMainSnakChange ()
 
 getRankChange ()
 
 getQualifierChanges ()
 
 equals ( $target)
 
 isAtomic ()
 Checks whether the difference represented by this object is atomic, which means the Statement has only changed either its main snak, qualifiers, references or rank. More...
 

Private Attributes

 $mainSnakChange
 
 $qualifierChanges
 
 $referenceChanges
 
 $rankChange
 

Detailed Description

Represents the difference between two Statement objects.

@fixme Contains references and rank? It's a StatementDifference!

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 >
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Diff\ClaimDifference::__construct ( DiffOpChange  $mainSnakChange = null,
Diff  $qualifierChanges = null,
Diff  $referenceChanges = null,
DiffOpChange  $rankChange = null 
)
Parameters
DiffOpChange | null$mainSnakChange
Diff | null$qualifierChanges
Diff | null$referenceChanges
DiffOpChange | null$rankChange

Member Function Documentation

◆ equals()

Wikibase\Repo\Diff\ClaimDifference::equals (   $target)
See also
Comparable::equals
Parameters
mixed$target
Returns
bool

◆ getMainSnakChange()

Wikibase\Repo\Diff\ClaimDifference::getMainSnakChange ( )
Returns
DiffOpChange|null

◆ getQualifierChanges()

Wikibase\Repo\Diff\ClaimDifference::getQualifierChanges ( )
Returns
Diff

◆ getRankChange()

Wikibase\Repo\Diff\ClaimDifference::getRankChange ( )
Returns
DiffOpChange|null

◆ getReferenceChanges()

Wikibase\Repo\Diff\ClaimDifference::getReferenceChanges ( )
Returns
Diff

◆ isAtomic()

Wikibase\Repo\Diff\ClaimDifference::isAtomic ( )

Checks whether the difference represented by this object is atomic, which means the Statement has only changed either its main snak, qualifiers, references or rank.

Returns
bool

Member Data Documentation

◆ $mainSnakChange

Wikibase\Repo\Diff\ClaimDifference::$mainSnakChange
private

◆ $qualifierChanges

Wikibase\Repo\Diff\ClaimDifference::$qualifierChanges
private

◆ $rankChange

Wikibase\Repo\Diff\ClaimDifference::$rankChange
private

◆ $referenceChanges

Wikibase\Repo\Diff\ClaimDifference::$referenceChanges
private

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