| 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) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | public function getColspan() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getRowspan() |
||
| 55 | } |
||
| 56 |
If a variable is not always an object, we recommend to add an additional type check to ensure your method call is safe: