MediaWiki REL1_39
DiffOpCopy.php
Go to the documentation of this file.
1<?php
2
35class DiffOpCopy extends DiffOp {
37 public $type = 'copy';
38
43 public function __construct( $orig, $closing = false ) {
44 if ( !is_array( $closing ) ) {
46 }
47 $this->orig = $orig;
48 $this->closing = $closing;
49 }
50
54 public function reverse() {
55 return new DiffOpCopy( $this->closing, $this->orig );
56 }
57}
Extends DiffOp.
__construct( $orig, $closing=false)
The base class for all other DiffOp classes.
Definition DiffOp.php:37
string[] false $orig
The left ("old") side of the diff, or false when it's an "add".
Definition DiffOp.php:49
string[] false $closing
The right ("new") side of the diff, or false when it's a "delete".
Definition DiffOp.php:55