Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / caxy / php-htmldiff / lib / Caxy / HtmlDiff / Match.php
index c76cfba8e478114bb21859736ed0ca890ecc29d1..621e5dc70d078b32e53246c7fd85b5efc1a7495d 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace Caxy\HtmlDiff;
 
-class Match
+class Match implements \Countable
 {
     public $startInOld;
     public $startInNew;
@@ -24,4 +24,8 @@ class Match
     {
         return $this->startInNew + $this->size;
     }
+
+    public function count() {
+        return (int)$this->size;
+    }
 }