@@ 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 |
|
@@ 90-98 (lines=9) @@ | ||
87 | /** |
|
88 | * @param Column $column |
|
89 | */ |
|
90 | public function addColumn(Column $column) |
|
91 | { |
|
92 | array_push($this->columns, $column); |
|
93 | ||
94 | $keys = array_keys($this->columns); |
|
95 | $offset = end($keys); |
|
96 | ||
97 | $column->setMatrix($this, $offset); |
|
98 | } |
|
99 | ||
100 | /** |
|
101 | * @param int $offset |