Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4014279
DiffOpChange.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
951 B
Referenced Files
None
Subscribers
None
DiffOpChange.php
View Options
<?php
/**
* A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)
*
* Copyright © 2000, 2001 Geoffrey T. Dairiki <dairiki@dairiki.org>
* You may copy this code freely under the conditions of the GPL.
*
* @license GPL-2.0-or-later
* @file
* @ingroup DifferenceEngine
*/
namespace
Wikimedia\Diff
;
/**
* Extends DiffOp. Used to mark strings that have been
* changed from the first string array (both added and subtracted).
*
* @ingroup DifferenceEngine
*/
class
DiffOpChange
extends
DiffOp
{
/** @inheritDoc */
public
$type
=
'change'
;
/**
* @param string[] $orig
* @param string[] $closing
*/
public
function
__construct
(
$orig
,
$closing
)
{
$this
->
orig
=
$orig
;
$this
->
closing
=
$closing
;
}
/**
* @return DiffOpChange
*/
public
function
reverse
()
{
return
new
DiffOpChange
(
$this
->
closing
,
$this
->
orig
);
}
}
/** @deprecated class alias since 1.41 */
class_alias
(
DiffOpChange
::
class
,
'DiffOpChange'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 14 2026, 13:25 (14 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e1/3d/658fc57576eeba4180db5806632e
Default Alt Text
DiffOpChange.php (951 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment