column = $column; $this->tableDiff = $tableDiff; $this->platform = $platform; } /** * @return Column */ public function getColumn() { return $this->column; } /** * @return TableDiff */ public function getTableDiff() { return $this->tableDiff; } /** * @return AbstractPlatform */ public function getPlatform() { return $this->platform; } /** * @param string|string[] $sql * * @return \Doctrine\DBAL\Event\SchemaAlterTableAddColumnEventArgs */ public function addSql($sql) { if (is_array($sql)) { $this->sql = array_merge($this->sql, $sql); } else { $this->sql[] = $sql; } return $this; } /** * @return string[] */ public function getSql() { return $this->sql; } }