public function removeColumn($name) { unset($this->columns[$name]); if ($this->last_column == $name) { $this->last_column = null; } return $this; }