Represents a diff between two entities.
More...
|
static | newForType ( $entityType, array $operations=[]) |
|
Represents a diff between two entities.
- Since
- 1.0
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
◆ __construct()
Wikibase\DataModel\Services\Diff\EntityDiff::__construct |
( |
array |
$operations = [] | ) |
|
◆ fixSubstructureDiff()
Wikibase\DataModel\Services\Diff\EntityDiff::fixSubstructureDiff |
( |
array & |
$operations, |
|
|
|
$key |
|
) |
| |
|
protected |
Checks the type of a substructure diff, and replaces it if needed.
This is needed for backwards compatibility with old versions of MapDiffer: As of commit ff65735a125e, MapDiffer may generate atomic diffs for substructures even in recursive mode (bug 51363).
- Parameters
-
array | &$operations | All change ops; This is a reference, so the substructure diff can be replaced if need be. |
string | $key | The key of the substructure |
◆ getAliasesDiff()
Wikibase\DataModel\Services\Diff\EntityDiff::getAliasesDiff |
( |
| ) |
|
FIXME: Not all entities do have aliases!
Returns a Diff object with the aliases differences.
- Returns
- Diff
◆ getClaimsDiff()
Wikibase\DataModel\Services\Diff\EntityDiff::getClaimsDiff |
( |
| ) |
|
FIXME: Not all entities do have claims a.k.a.
statements!
Returns a Diff object with the claim differences.
- Returns
- Diff
◆ getDescriptionsDiff()
Wikibase\DataModel\Services\Diff\EntityDiff::getDescriptionsDiff |
( |
| ) |
|
FIXME: Not all entities do have descriptions!
Returns a Diff object with the descriptions differences.
- Returns
- Diff
◆ getLabelsDiff()
Wikibase\DataModel\Services\Diff\EntityDiff::getLabelsDiff |
( |
| ) |
|
FIXME: Not all entities do have labels!
Returns a Diff object with the labels differences.
- Returns
- Diff
◆ getType()
Wikibase\DataModel\Services\Diff\EntityDiff::getType |
( |
| ) |
|
◆ isEmpty()
Wikibase\DataModel\Services\Diff\EntityDiff::isEmpty |
( |
| ) |
|
◆ newForType()
static Wikibase\DataModel\Services\Diff\EntityDiff::newForType |
( |
|
$entityType, |
|
|
array |
$operations = [] |
|
) |
| |
|
static |
- Parameters
-
string | $entityType | |
DiffOp[] | $operations | |
- Returns
- self
The documentation for this class was generated from the following file: