Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| TableCellBox | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\HtmlToPdf\Box; |
| 6 | |
| 7 | /** |
| 8 | * `display: table-cell`. Behaves like a block box but its width / x |
| 9 | * position are set by the parent {@see TableRowBox} during layout. |
| 10 | */ |
| 11 | final class TableCellBox extends Box |
| 12 | { |
| 13 | /** |
| 14 | * Zero-based index of the column this cell starts in, and how many |
| 15 | * columns it spans. Recorded during layout from the table's cell |
| 16 | * grid so the painter can resolve the CSS 2.1 ยง17.5.1 column |
| 17 | * background layers without rebuilding the grid. |
| 18 | */ |
| 19 | public ?int $tableColumn = null; |
| 20 | |
| 21 | public int $tableColumnSpan = 1; |
| 22 | } |