wp-visitor-contributions/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Match.php

28 lines
488 B
PHP

2016-07-12 16:58:19 -05:00
<?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;
}
}