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