public function removeColumn($columnName) { unset($this->columns[$columnName]); $this->columnNames = array_filter($this->columnNames, function ($n) use($columnName) { return $n !== $columnName; }); }