MediaWiki master
Wikimedia\Diff\DiffOpChange Class Reference

Extends DiffOp. More...

Inherits Wikimedia\Diff\DiffOp.

Collaboration diagram for Wikimedia\Diff\DiffOpChange:

Public Member Functions

 __construct ( $orig, $closing)
 
 reverse ()
 
- Public Member Functions inherited from Wikimedia\Diff\DiffOp
 getClosing ( $i=null)
 Without a line number this returns either all lines on the right ("new") side of the diff, or false when it's a delete operation.
 
 getOrig ()
 Returns either all lines on the left ("old") side of the diff, or false when it's an add operation.
 
 getType ()
 
 nclosing ()
 
 norig ()
 

Public Attributes

 $type = 'change'
 
- Public Attributes inherited from Wikimedia\Diff\DiffOp
string[] false $closing
 The right ("new") side of the diff, or false when it's a "delete".
 
string[] false $orig
 The left ("old") side of the diff, or false when it's an "add".
 
string $type
 

Detailed Description

Extends DiffOp.

Used to mark strings that have been changed from the first string array (both added and subtracted).

Definition at line 36 of file DiffOpChange.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Diff\DiffOpChange::__construct ( $orig,
$closing )
Parameters
string[]$orig
string[]$closing

Definition at line 44 of file DiffOpChange.php.

References Wikimedia\Diff\DiffOp\$closing, and Wikimedia\Diff\DiffOp\$orig.

Member Function Documentation

◆ reverse()

Wikimedia\Diff\DiffOpChange::reverse ( )
Returns
DiffOpChange

Reimplemented from Wikimedia\Diff\DiffOp.

Definition at line 52 of file DiffOpChange.php.

Member Data Documentation

◆ $type

Wikimedia\Diff\DiffOpChange::$type = 'change'

Definition at line 38 of file DiffOpChange.php.


The documentation for this class was generated from the following file: