PATH:
home
/
lab2454c
/
healthvalidate.com
/
vendor
/
doctrine
/
dbal
/
src
/
Schema
<?php namespace Doctrine\DBAL\Schema; use function in_array; /** * Represents the change of a column. */ class ColumnDiff { /** @var string */ public $oldColumnName; /** @var Column */ public $column; /** @var string[] */ public $changedProperties = []; /** @var Column|null */ public $fromColumn; /** * @param string $oldColumnName * @param string[] $changedProperties */ public function __construct( $oldColumnName, Column $column, array $changedProperties = [], ?Column $fromColumn = null ) { $this->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); } }
[-] SchemaDiff.php
[edit]
[-] OracleSchemaManager.php
[edit]
[-] SchemaException.php
[edit]
[-] Schema.php
[edit]
[+]
..
[-] View.php
[edit]
[-] Identifier.php
[edit]
[-] DB2SchemaManager.php
[edit]
[-] ForeignKeyConstraint.php
[edit]
[+]
Exception
[-] Column.php
[edit]
[-] AbstractAsset.php
[edit]
[-] SqliteSchemaManager.php
[edit]
[-] UniqueConstraint.php
[edit]
[-] Table.php
[edit]
[-] TableDiff.php
[edit]
[+]
Visitor
[-] Sequence.php
[edit]
[-] Constraint.php
[edit]
[-] Index.php
[edit]
[-] MySQLSchemaManager.php
[edit]
[-] Comparator.php
[edit]
[-] SchemaConfig.php
[edit]
[-] AbstractSchemaManager.php
[edit]
[-] PostgreSQLSchemaManager.php
[edit]
[-] ColumnDiff.php
[edit]
[-] SQLServerSchemaManager.php
[edit]