oldColumnName = $oldColumnName; $this->column = $column; $this->changedProperties = $changedProperties; $this->fromColumn = $fromColumn; } /** * @param string $propertyName * * @return bool */ public function hasChanged($propertyName) { return in_array($propertyName, $this->changedProperties, true); } /** * @return Identifier */ public function getOldColumnName() { $quote = $this->fromColumn !== null && $this->fromColumn->isQuoted(); return new Identifier($this->oldColumnName, $quote); } }