/** * @param Row $row */ public function add(Row $row) { foreach ($this->summary as $key => $sum) { $column = $this->datagrid->getColumn($key); $value = $this->getValue($row, $column); $this->summary[$key] += $value; } }