123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?php
- namespace Doctrine\DBAL\Event;
- use Doctrine\DBAL\Platforms\AbstractPlatform;
- use Doctrine\DBAL\Schema\Column;
- use Doctrine\DBAL\Schema\Table;
- class SchemaCreateTableColumnEventArgs extends SchemaEventArgs
- {
-
- private $_column;
-
- private $_table;
-
- private $_platform;
-
- private $_sql = array();
-
- public function __construct(Column $column, Table $table, AbstractPlatform $platform)
- {
- $this->_column = $column;
- $this->_table = $table;
- $this->_platform = $platform;
- }
-
- public function getColumn()
- {
- return $this->_column;
- }
-
- public function getTable()
- {
- return $this->_table;
- }
-
- 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;
- }
- }
|