MediaWiki REL1_39
DiffOpChange.php
Go to the documentation of this file.
1<?php
2
35class DiffOpChange extends DiffOp {
37 public $type = 'change';
38
43 public function __construct( $orig, $closing ) {
44 $this->orig = $orig;
45 $this->closing = $closing;
46 }
47
51 public function reverse() {
52 return new DiffOpChange( $this->closing, $this->orig );
53 }
54}
Extends DiffOp.
__construct( $orig, $closing)
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