WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Domain\Diff\SenseDiffer Class Reference
+ Inheritance diagram for Wikibase\Lexeme\Domain\Diff\SenseDiffer:
+ Collaboration diagram for Wikibase\Lexeme\Domain\Diff\SenseDiffer:

Public Member Functions

 __construct ()
 
 canDiffEntityType ( $entityType)
 
 diffEntities (EntityDocument $from, EntityDocument $to)
 
 getConstructionDiff (EntityDocument $entity)
 
 getDestructionDiff (EntityDocument $entity)
 
 getAddSenseDiff (Sense $sense)
 
 getRemoveSenseDiff (Sense $sense)
 

Private Member Functions

 diff (Sense $old, Sense $new)
 
 toSenseDiffArray (Sense $sense)
 

Private Attributes

 $recursiveMapDiffer
 
 $statementListDiffer
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::__construct ( )

Member Function Documentation

◆ canDiffEntityType()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::canDiffEntityType ( $entityType)
Parameters
string$entityType
Returns
bool

◆ diff()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::diff ( Sense $old,
Sense $new )
private
Parameters
Sense$old
Sense$new
Returns
ChangeSenseDiffOp

◆ diffEntities()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::diffEntities ( EntityDocument $from,
EntityDocument $to )
Parameters
EntityDocument$from
EntityDocument$to
Returns
EntityDiff
Exceptions
InvalidArgumentException

◆ getAddSenseDiff()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::getAddSenseDiff ( Sense $sense)

◆ getConstructionDiff()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::getConstructionDiff ( EntityDocument $entity)
Parameters
EntityDocument$entity
Returns
EntityDiff
Exceptions
InvalidArgumentException

◆ getDestructionDiff()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::getDestructionDiff ( EntityDocument $entity)
Parameters
EntityDocument$entity
Returns
EntityDiff
Exceptions
InvalidArgumentException

◆ getRemoveSenseDiff()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::getRemoveSenseDiff ( Sense $sense)

◆ toSenseDiffArray()

Wikibase\Lexeme\Domain\Diff\SenseDiffer::toSenseDiffArray ( Sense $sense)
private
Parameters
Sense$sense
Returns
string[][]

Member Data Documentation

◆ $recursiveMapDiffer

Wikibase\Lexeme\Domain\Diff\SenseDiffer::$recursiveMapDiffer
private

◆ $statementListDiffer

Wikibase\Lexeme\Domain\Diff\SenseDiffer::$statementListDiffer
private

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