X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fcaxy%2Fphp-htmldiff%2Flib%2FCaxy%2FHtmlDiff%2FTable%2FTableCell.php;fp=vendor%2Fcaxy%2Fphp-htmldiff%2Flib%2FCaxy%2FHtmlDiff%2FTable%2FTableCell.php;h=cf2c23888c210a0c0433644c7b775f6ec3eb1de2;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Table/TableCell.php b/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Table/TableCell.php new file mode 100644 index 000000000..cf2c23888 --- /dev/null +++ b/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Table/TableCell.php @@ -0,0 +1,54 @@ +row; + } + + /** + * @param TableRow|null $row + * + * @return $this + */ + public function setRow(TableRow $row = null) + { + $this->row = $row; + + if (null !== $row && !in_array($this, $row->getCells())) { + $row->addCell($this); + } + + return $this; + } + + /** + * @return int + */ + public function getColspan() + { + return (int) $this->getAttribute('colspan') ?: 1; + } + + /** + * @return int + */ + public function getRowspan() + { + return (int) $this->getAttribute('rowspan') ?: 1; + } +}