MediaWiki REL1_34
DiffOpCopy.php
Go to the documentation of this file.
1<?php
2
35class DiffOpCopy extends DiffOp {
36 public $type = 'copy';
37
38 public function __construct( $orig, $closing = false ) {
39 if ( !is_array( $closing ) ) {
41 }
42 $this->orig = $orig;
43 $this->closing = $closing;
44 }
45
49 public function reverse() {
50 return new DiffOpCopy( $this->closing, $this->orig );
51 }
52}
Extends DiffOp.
__construct( $orig, $closing=false)
The base class for all other DiffOp classes.
Definition DiffOp.php:37
string[] false $orig
Definition DiffOp.php:47
string[] false $closing
Definition DiffOp.php:52