3 namespace Caxy\HtmlDiff\Table;
20 * TablePosition constructor.
25 public function __construct($row, $cell)
34 public function getRow()
42 public function getCell()
50 public function __toString()
52 return $this->row.':'.$this->cell;
56 * @param TablePosition $a
57 * @param TablePosition $b
61 public static function compare($a, $b)
63 if ($a->getRow() == $b->getRow()) {
64 return $a->getCell() - $b->getCell();
67 return $a->getRow() - $b->getRow();