Version 1
[yaffs-website] / web / core / lib / Drupal / Component / Diff / Engine / DiffOpChange.php
diff --git a/web/core/lib/Drupal/Component/Diff/Engine/DiffOpChange.php b/web/core/lib/Drupal/Component/Diff/Engine/DiffOpChange.php
new file mode 100644 (file)
index 0000000..4abd6ac
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\Component\Diff\Engine;
+
+/**
+ * @todo document
+ * @private
+ * @subpackage DifferenceEngine
+ */
+class DiffOpChange extends DiffOp {
+  public $type = 'change';
+
+  public function __construct($orig, $closing) {
+    $this->orig = $orig;
+    $this->closing = $closing;
+  }
+
+  public function reverse() {
+    return new DiffOpChange($this->closing, $this->orig);
+  }
+
+}