MediaWiki
REL1_41
DiffOpAdd.php
Go to the documentation of this file.
1
<?php
2
28
namespace
Wikimedia\Diff
;
29
36
class
DiffOpAdd
extends
DiffOp
{
38
public
$type
=
'add'
;
39
43
public
function
__construct
(
$lines
) {
44
$this->closing =
$lines
;
45
$this->orig =
false
;
46
}
47
51
public
function
reverse
() {
52
return
new
DiffOpDelete
( $this->closing );
53
}
54
}
55
57
class_alias( DiffOpAdd::class,
'DiffOpAdd'
);
Wikimedia\Diff\DiffOpAdd
Extends DiffOp.
Definition
DiffOpAdd.php:36
Wikimedia\Diff\DiffOpAdd\__construct
__construct( $lines)
Definition
DiffOpAdd.php:43
Wikimedia\Diff\DiffOpAdd\$type
$type
Definition
DiffOpAdd.php:38
Wikimedia\Diff\DiffOpAdd\reverse
reverse()
Definition
DiffOpAdd.php:51
Wikimedia\Diff\DiffOpDelete
Extends DiffOp.
Definition
DiffOpDelete.php:36
Wikimedia\Diff\DiffOp
The base class for all other DiffOp classes.
Definition
DiffOp.php:38
Wikimedia\Diff
Definition
ArrayDiffFormatter.php:27
$lines
if(!file_exists( $CREDITS)) $lines
Definition
updateCredits.php:45
includes
libs
Diff
DiffOpAdd.php
Generated on Wed Nov 27 2024 07:23:44 for MediaWiki by
1.10.0