/** * @param Cell $newCell */ function addCell(Cell $newCell) { $cell_id = $newCell->get_id(); $this->cells[$cell_id] = $newCell; }