Version 1
[yaffs-website] / web / core / lib / Drupal / Component / Diff / Engine / DiffOpChange.php
1 <?php
2
3 namespace Drupal\Component\Diff\Engine;
4
5 /**
6  * @todo document
7  * @private
8  * @subpackage DifferenceEngine
9  */
10 class DiffOpChange extends DiffOp {
11   public $type = 'change';
12
13   public function __construct($orig, $closing) {
14     $this->orig = $orig;
15     $this->closing = $closing;
16   }
17
18   public function reverse() {
19     return new DiffOpChange($this->closing, $this->orig);
20   }
21
22 }