MediaWiki master
Wikimedia\Diff\DiffOpCopy Class Reference

Extends DiffOp. More...

Inherits Wikimedia\Diff\DiffOp.

Collaboration diagram for Wikimedia\Diff\DiffOpCopy:

Public Member Functions

 __construct ( $orig, $closing=false)
 
 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 = 'copy'
 
- 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 copied from one string array to the other.

Definition at line 36 of file DiffOpCopy.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Diff\DiffOpCopy::__construct ( $orig,
$closing = false )
Parameters
string[]$orig
string[] | false$closingShould either be identical to $orig, or not given

Definition at line 44 of file DiffOpCopy.php.

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

Member Function Documentation

◆ reverse()

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

Reimplemented from Wikimedia\Diff\DiffOp.

Definition at line 55 of file DiffOpCopy.php.

Member Data Documentation

◆ $type

Wikimedia\Diff\DiffOpCopy::$type = 'copy'

Definition at line 38 of file DiffOpCopy.php.


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