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