123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?php
- namespace Doctrine\DBAL\Event;
- use Doctrine\DBAL\Platforms\AbstractPlatform;
- use Doctrine\DBAL\Schema\Column;
- use Doctrine\DBAL\Schema\TableDiff;
- class SchemaAlterTableRemoveColumnEventArgs extends SchemaEventArgs
- {
-
- private $_column;
-
- private $_tableDiff;
-
- private $_platform;
-
- private $_sql = array();
-
- public function __construct(Column $column, TableDiff $tableDiff, AbstractPlatform $platform)
- {
- $this->_column = $column;
- $this->_tableDiff = $tableDiff;
- $this->_platform = $platform;
- }
-
- public function getColumn()
- {
- return $this->_column;
- }
-
- public function getTableDiff()
- {
- return $this->_tableDiff;
- }
-
- public function getPlatform()
- {
- return $this->_platform;
- }
-
- public function addSql($sql)
- {
- if (is_array($sql)) {
- $this->_sql = array_merge($this->_sql, $sql);
- } else {
- $this->_sql[] = $sql;
- }
- return $this;
- }
-
- public function getSql()
- {
- return $this->_sql;
- }
- }
|