|
| doDiff ( $oldValues, $newValues) |
|
|
static | flattenDiff ( $diff) |
| Returns a flat collection of diffs with an absolute path and the DiffOp that has been detected under that path.
|
|
|
| getDifferType ( $input) |
| Returns the type of differ that we should use for a given input.
|
|
◆ doDiff()
MediaWiki\Extension\WikiLambda\Diff\ZObjectDiffer::doDiff |
( |
| $oldValues, |
|
|
| $newValues ) |
- See also
- Differ::doDiff
Takes two ZObjects, computes the diff, and returns this diff as an array of DiffOp.
- Parameters
-
array | string | $oldValues | The first array |
array | string | $newValues | The second array |
- Exceptions
-
- Returns
- DiffOp returns either an atomic DiffOp or a new
◆ flattenDiff()
static MediaWiki\Extension\WikiLambda\Diff\ZObjectDiffer::flattenDiff |
( |
| $diff | ) |
|
|
static |
Returns a flat collection of diffs with an absolute path and the DiffOp that has been detected under that path.
- Parameters
-
- Returns
- array
◆ getDifferType()
MediaWiki\Extension\WikiLambda\Diff\ZObjectDiffer::getDifferType |
( |
| $input | ) |
|
|
protected |
Returns the type of differ that we should use for a given input.
- Parameters
-
- Returns
- int
The documentation for this class was generated from the following file: