Version 1
[yaffs-website] / vendor / caxy / php-htmldiff / lib / Caxy / HtmlDiff / Match.php
diff --git a/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Match.php b/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Match.php
new file mode 100644 (file)
index 0000000..c76cfba
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+namespace Caxy\HtmlDiff;
+
+class Match
+{
+    public $startInOld;
+    public $startInNew;
+    public $size;
+
+    public function __construct($startInOld, $startInNew, $size)
+    {
+        $this->startInOld = $startInOld;
+        $this->startInNew = $startInNew;
+        $this->size = $size;
+    }
+
+    public function endInOld()
+    {
+        return $this->startInOld + $this->size;
+    }
+
+    public function endInNew()
+    {
+        return $this->startInNew + $this->size;
+    }
+}