| 1 | <?php |
||
| 7 | class Row |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The cells in this row |
||
| 11 | * @var Cell[] |
||
| 12 | */ |
||
| 13 | protected $cells = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The row style |
||
| 17 | * @var Style |
||
| 18 | */ |
||
| 19 | protected $style; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Row constructor. |
||
| 23 | * @param Cell[] $cells |
||
| 24 | * @param Style|null $style |
||
| 25 | */ |
||
| 26 | 90 | public function __construct(array $cells, $style) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return Cell[] $cells |
||
| 35 | */ |
||
| 36 | 74 | public function getCells() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param Cell[] $cells |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | 90 | public function setCells(array $cells) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return Style |
||
| 57 | */ |
||
| 58 | 63 | public function getStyle() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @param Style|null $style |
||
| 65 | * @return Row |
||
| 66 | */ |
||
| 67 | 90 | public function setStyle($style) |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @param Cell $cell |
||
| 76 | * @return Row |
||
| 77 | */ |
||
| 78 | 88 | public function addCell(Cell $cell) |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @return int |
||
| 87 | */ |
||
| 88 | 67 | public function getNumCells() |
|
| 92 | } |
||
| 93 |