MediaWiki  master
DiffOpChange.php
Go to the documentation of this file.
1 <?php
2 
35 class 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 }
DiffOp
The base class for all other DiffOp classes.
Definition: DiffOp.php:37
DiffOpChange\__construct
__construct( $orig, $closing)
Definition: DiffOpChange.php:43
DiffOpChange
Extends DiffOp.
Definition: DiffOpChange.php:35
DiffOp\$closing
string[] false $closing
Definition: DiffOp.php:52
DiffOpChange\$type
$type
Definition: DiffOpChange.php:37
DiffOpChange\reverse
reverse()
Definition: DiffOpChange.php:51
DiffOp\$orig
string[] false $orig
Definition: DiffOp.php:47