. */ namespace Doctrine\DBAL\Schema; /** * Represent the change of a column * * * @link www.doctrine-project.org * @since 2.0 * @version $Revision$ * @author Benjamin Eberlei */ class ColumnDiff { public $oldColumnName; /** * @var Column */ public $column; /** * @var array */ public $changedProperties = array(); public function __construct($oldColumnName, Column $column, array $changedProperties = array()) { $this->oldColumnName = $oldColumnName; $this->column = $column; $this->changedProperties = $changedProperties; } public function hasChanged($propertyName) { return in_array($propertyName, $this->changedProperties); } }