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

Public Member Functions

 __construct ()
 
 canDiffEntityType ( $entityType)
 
 diffEntities (EntityDocument $from, EntityDocument $to)
 
 diffLexemes (Lexeme $from, Lexeme $to)
 
 getConstructionDiff (EntityDocument $entity)
 
 getDestructionDiff (EntityDocument $entity)
 

Private Member Functions

 toDiffArray (Lexeme $lexeme)
 
 toFormsDiffArray (FormSet $forms)
 
 getNextFormIdCounterDiff (Lexeme $from, Lexeme $to)
 
 toSensesDiffArray (SenseSet $senses)
 
 getNextSenseIdCounterDiff (Lexeme $from, Lexeme $to)
 
 getLexicalCategoryAsArray (Lexeme $lexeme)
 
 getLanguageAsArray (Lexeme $lexeme)
 

Private Attributes

 $statementListDiffer
 
 $recursiveMapDiffer
 
 $formDiffer
 
 $senseDiffer
 
 $itemIdDiffer
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ canDiffEntityType()

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

◆ diffEntities()

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

◆ diffLexemes()

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::diffLexemes ( Lexeme $from,
Lexeme $to )
Parameters
Lexeme$from
Lexeme$to
Returns
EntityDiff

◆ getConstructionDiff()

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

◆ getDestructionDiff()

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

◆ getLanguageAsArray()

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::getLanguageAsArray ( Lexeme $lexeme)
private

◆ getLexicalCategoryAsArray()

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::getLexicalCategoryAsArray ( Lexeme $lexeme)
private

◆ getNextFormIdCounterDiff()

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::getNextFormIdCounterDiff ( Lexeme $from,
Lexeme $to )
private

◆ getNextSenseIdCounterDiff()

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::getNextSenseIdCounterDiff ( Lexeme $from,
Lexeme $to )
private

◆ toDiffArray()

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::toDiffArray ( Lexeme $lexeme)
private
Parameters
Lexeme$lexeme
Returns
array[]

◆ toFormsDiffArray()

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::toFormsDiffArray ( FormSet $forms)
private
Parameters
FormSet$forms
Returns
Form[]

◆ toSensesDiffArray()

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::toSensesDiffArray ( SenseSet $senses)
private
Parameters
SenseSet$senses
Returns
Sense[]

Member Data Documentation

◆ $formDiffer

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::$formDiffer
private

◆ $itemIdDiffer

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::$itemIdDiffer
private

◆ $recursiveMapDiffer

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

◆ $senseDiffer

Wikibase\Lexeme\Domain\Diff\LexemeDiffer::$senseDiffer
private

◆ $statementListDiffer

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

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