/** * @throws WrongArgumentException * @return DBTable **/ public function addColumn(DBColumn $column) { $name = $column->getName(); Assert::isFalse(isset($this->columns[$name]), "column '{$name}' already exist"); $this->order[] = $this->columns[$name] = $column; $column->setTable($this); return $this; }