Plugin to allow visitor contributions to WordPress posts, wiki style.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
488B

  1. <?php
  2. namespace Caxy\HtmlDiff;
  3. class Match
  4. {
  5. public $startInOld;
  6. public $startInNew;
  7. public $size;
  8. public function __construct($startInOld, $startInNew, $size)
  9. {
  10. $this->startInOld = $startInOld;
  11. $this->startInNew = $startInNew;
  12. $this->size = $size;
  13. }
  14. public function endInOld()
  15. {
  16. return $this->startInOld + $this->size;
  17. }
  18. public function endInNew()
  19. {
  20. return $this->startInNew + $this->size;
  21. }
  22. }