MediaWiki
master
DiffOpChange.php
Go to the documentation of this file.
1
<?php
2
28
namespace
Wikimedia\Diff
;
29
36
class
DiffOpChange
extends
DiffOp
{
38
public
$type
=
'change'
;
39
44
public
function
__construct
(
$orig
,
$closing
) {
45
$this->orig =
$orig
;
46
$this->closing =
$closing
;
47
}
48
52
public
function
reverse
() {
53
return
new
DiffOpChange
( $this->closing, $this->orig );
54
}
55
}
56
58
class_alias( DiffOpChange::class,
'DiffOpChange'
);
Wikimedia\Diff\DiffOpChange
Extends DiffOp.
Definition
DiffOpChange.php:36
Wikimedia\Diff\DiffOpChange\reverse
reverse()
Definition
DiffOpChange.php:52
Wikimedia\Diff\DiffOpChange\__construct
__construct( $orig, $closing)
Definition
DiffOpChange.php:44
Wikimedia\Diff\DiffOpChange\$type
$type
Definition
DiffOpChange.php:38
Wikimedia\Diff\DiffOp
The base class for all other DiffOp classes.
Definition
DiffOp.php:38
Wikimedia\Diff\DiffOp\$closing
string[] false $closing
The right ("new") side of the diff, or false when it's a "delete".
Definition
DiffOp.php:56
Wikimedia\Diff\DiffOp\$orig
string[] false $orig
The left ("old") side of the diff, or false when it's an "add".
Definition
DiffOp.php:50
Wikimedia\Diff
Definition
ArrayDiffFormatter.php:27
includes
libs
Diff
DiffOpChange.php
Generated on Sat Dec 21 2024 11:24:25 for MediaWiki by
1.10.0