Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Services\Diff\PropertyDiffer Class Reference
+ Inheritance diagram for Wikibase\DataModel\Services\Diff\PropertyDiffer:
+ Collaboration diagram for Wikibase\DataModel\Services\Diff\PropertyDiffer:

Public Member Functions

 __construct ()
 
 canDiffEntityType ( $entityType)
 
 diffEntities (EntityDocument $from, EntityDocument $to)
 
 diffProperties (Property $from, Property $to)
 
- Public Member Functions inherited from Wikibase\DataModel\Services\Diff\EntityDifferStrategy
 getConstructionDiff (EntityDocument $entity)
 
 getDestructionDiff (EntityDocument $entity)
 

Private Member Functions

 assertIsProperty (EntityDocument $property)
 
 diffPropertyArrays (array $from, array $to)
 
 toDiffArray (Property $property)
 

Private Attributes

 $recursiveMapDiffer
 
 $statementListDiffer
 

Detailed Description

Since
1.0
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\Diff\PropertyDiffer::__construct ( )

Member Function Documentation

◆ assertIsProperty()

Wikibase\DataModel\Services\Diff\PropertyDiffer::assertIsProperty ( EntityDocument  $property)
private

◆ canDiffEntityType()

Wikibase\DataModel\Services\Diff\PropertyDiffer::canDiffEntityType (   $entityType)
Parameters
string$entityType
Returns
bool

Implements Wikibase\DataModel\Services\Diff\EntityDifferStrategy.

◆ diffEntities()

Wikibase\DataModel\Services\Diff\PropertyDiffer::diffEntities ( EntityDocument  $from,
EntityDocument  $to 
)
Parameters
EntityDocument$from
EntityDocument$to
Returns
EntityDiff
Exceptions
InvalidArgumentException

Implements Wikibase\DataModel\Services\Diff\EntityDifferStrategy.

◆ diffProperties()

Wikibase\DataModel\Services\Diff\PropertyDiffer::diffProperties ( Property  $from,
Property  $to 
)

◆ diffPropertyArrays()

Wikibase\DataModel\Services\Diff\PropertyDiffer::diffPropertyArrays ( array  $from,
array  $to 
)
private
Parameters
array[]$from
array[]$to
Returns
DiffOp[]

◆ toDiffArray()

Wikibase\DataModel\Services\Diff\PropertyDiffer::toDiffArray ( Property  $property)
private
Parameters
Property$property
Returns
array[]

Member Data Documentation

◆ $recursiveMapDiffer

Wikibase\DataModel\Services\Diff\PropertyDiffer::$recursiveMapDiffer
private

◆ $statementListDiffer

Wikibase\DataModel\Services\Diff\PropertyDiffer::$statementListDiffer
private

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