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 | 181 | public function __construct(array $cells, $style) |
|
32 | |||
33 | /** |
||
34 | * @return Cell[] $cells |
||
35 | */ |
||
36 | 139 | public function getCells() |
|
40 | |||
41 | /** |
||
42 | * @param Cell[] $cells |
||
43 | * @return Row |
||
44 | */ |
||
45 | 181 | public function setCells(array $cells) |
|
54 | |||
55 | /** |
||
56 | * @param Cell $cell |
||
57 | * @param mixed $cellIndex |
||
58 | * @parma int $cellIndex |
||
59 | * @return Row |
||
60 | */ |
||
61 | 35 | public function setCellAtIndex(Cell $cell, $cellIndex) |
|
67 | |||
68 | /** |
||
69 | * @param Cell $cell |
||
70 | * @return Row |
||
71 | */ |
||
72 | 156 | public function addCell(Cell $cell) |
|
78 | |||
79 | /** |
||
80 | * @return int |
||
81 | */ |
||
82 | 115 | public function getNumCells() |
|
86 | |||
87 | /** |
||
88 | * @return Style |
||
89 | */ |
||
90 | 63 | public function getStyle() |
|
94 | |||
95 | /** |
||
96 | * @param Style|null $style |
||
97 | * @return Row |
||
98 | */ |
||
99 | 181 | public function setStyle($style) |
|
105 | |||
106 | /** |
||
107 | * @return array The row values, as array |
||
108 | */ |
||
109 | public function toArray() |
||
115 | } |
||
116 |