Version 1
[yaffs-website] / vendor / caxy / php-htmldiff / lib / Caxy / HtmlDiff / Operation.php
diff --git a/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Operation.php b/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Operation.php
new file mode 100644 (file)
index 0000000..0cd7937
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Caxy\HtmlDiff;
+
+class Operation
+{
+    const ADDED = 'a';
+    const DELETED = 'd';
+    const CHANGED = 'c';
+
+    public $action;
+    public $startInOld;
+    public $endInOld;
+    public $startInNew;
+    public $endInNew;
+
+    public function __construct($action, $startInOld, $endInOld, $startInNew, $endInNew)
+    {
+        $this->action = $action;
+        $this->startInOld = $startInOld;
+        $this->endInOld = $endInOld;
+        $this->startInNew = $startInNew;
+        $this->endInNew = $endInNew;
+    }
+}