| 1 | <?php |
||
| 9 | class TableCell extends AbstractTableElement |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var TableRow |
||
| 13 | */ |
||
| 14 | protected $row; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return TableRow |
||
| 18 | */ |
||
| 19 | public function getRow() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param TableRow|null $row |
||
| 26 | * |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | public function setRow(TableRow $row = null) |
||
| 30 | { |
||
| 31 | $this->row = $row; |
||
| 32 | |||
| 33 | if (null !== $row && !in_array($this, $row->getCells())) { |
||
| 34 | $row->addCell($this); |
||
| 35 | } |
||
| 36 | |||
| 37 | return $this; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | public function getColspan() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getRowspan() |
||
| 55 | } |
||
| 56 |