@@ 65-72 (lines=8) @@ | ||
62 | * @param TableRow[] $rows |
|
63 | * @param null|int $position |
|
64 | */ |
|
65 | public function insertRows($rows, $position = null) |
|
66 | { |
|
67 | if ($position === null) { |
|
68 | $this->rows = array_merge($this->rows, $rows); |
|
69 | } else { |
|
70 | array_splice($this->rows, $position, 0, $rows); |
|
71 | } |
|
72 | } |
|
73 | ||
74 | /** |
|
75 | * @param TablePosition $position |
@@ 98-105 (lines=8) @@ | ||
95 | * @param TableCell[] $cells |
|
96 | * @param null|int $position |
|
97 | */ |
|
98 | public function insertCells($cells, $position = null) |
|
99 | { |
|
100 | if ($position === null) { |
|
101 | $this->cells = array_merge($this->cells, $cells); |
|
102 | } else { |
|
103 | array_splice($this->cells, $position, 0, $cells); |
|
104 | } |
|
105 | } |
|
106 | } |
|
107 |