Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Services\Diff\ItemDiff Class Reference

Represents a diff between two Item instances. More...

+ Inheritance diagram for Wikibase\DataModel\Services\Diff\ItemDiff:
+ Collaboration diagram for Wikibase\DataModel\Services\Diff\ItemDiff:

Public Member Functions

 __construct (array $operations=[])
 
 getSiteLinkDiff ()
 Returns a Diff object with the sitelink differences. More...
 
 isEmpty ()
 
 getType ()
 
- Public Member Functions inherited from Wikibase\DataModel\Services\Diff\EntityDiff
 getAliasesDiff ()
 FIXME: Not all entities do have aliases! More...
 
 getLabelsDiff ()
 FIXME: Not all entities do have labels! More...
 
 getDescriptionsDiff ()
 FIXME: Not all entities do have descriptions! More...
 
 getClaimsDiff ()
 FIXME: Not all entities do have claims a.k.a. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Wikibase\DataModel\Services\Diff\EntityDiff
static newForType ( $entityType, array $operations=[])
 
- Protected Member Functions inherited from Wikibase\DataModel\Services\Diff\EntityDiff
 fixSubstructureDiff (array &$operations, $key)
 Checks the type of a substructure diff, and replaces it if needed. More...
 

Detailed Description

Represents a diff between two Item instances.

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\ItemDiff::__construct ( array  $operations = [])
Parameters
DiffOp[]$operations

Reimplemented from Wikibase\DataModel\Services\Diff\EntityDiff.

Member Function Documentation

◆ getSiteLinkDiff()

Wikibase\DataModel\Services\Diff\ItemDiff::getSiteLinkDiff ( )

Returns a Diff object with the sitelink differences.

Returns
Diff

◆ getType()

Wikibase\DataModel\Services\Diff\ItemDiff::getType ( )
See also
DiffOp::getType
Returns
string

Reimplemented from Wikibase\DataModel\Services\Diff\EntityDiff.

◆ isEmpty()

Wikibase\DataModel\Services\Diff\ItemDiff::isEmpty ( )
See also
EntityDiff::isEmpty
Returns
bool

Reimplemented from Wikibase\DataModel\Services\Diff\EntityDiff.


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