| @@ 33-41 (lines=9) @@ | ||
| 30 | /** |
|
| 31 | * @param Row $row |
|
| 32 | */ |
|
| 33 | public function addRow(Row $row) |
|
| 34 | { |
|
| 35 | array_push($this->rows, $row); |
|
| 36 | ||
| 37 | $keys = array_keys($this->rows); |
|
| 38 | $offset = end($keys); |
|
| 39 | ||
| 40 | $row->setMatrix($this, $offset); |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @param int $offset |
|
| @@ 92-100 (lines=9) @@ | ||
| 89 | /** |
|
| 90 | * @param Column $column |
|
| 91 | */ |
|
| 92 | public function addColumn(Column $column) |
|
| 93 | { |
|
| 94 | array_push($this->columns, $column); |
|
| 95 | ||
| 96 | $keys = array_keys($this->columns); |
|
| 97 | $offset = end($keys); |
|
| 98 | ||
| 99 | $column->setMatrix($this, $offset); |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * @param int $offset |
|