123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
-
-
- namespace Doctrine\DBAL\Event;
-
- use Doctrine\DBAL\Platforms\AbstractPlatform,
- Doctrine\DBAL\Schema\Table;
-
-
- class SchemaDropTableEventArgs extends SchemaEventArgs
- {
-
-
- private $_table = null;
-
-
-
- private $_platform = null;
-
-
-
- private $_sql = null;
-
-
-
- public function __construct($table, AbstractPlatform $platform)
- {
- if ( ! $table instanceof Table && !is_string($table)) {
- throw new \InvalidArgumentException('SchemaCreateTableEventArgs expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.');
- }
-
- $this->_table = $table;
- $this->_platform = $platform;
- }
-
-
-
- public function getTable()
- {
- return $this->_table;
- }
-
-
-
- public function getPlatform()
- {
- return $this->_platform;
- }
-
-
-
- public function setSql($sql)
- {
- $this->_sql = $sql;
-
- return $this;
- }
-
-
-
- public function getSql()
- {
- return $this->_sql;
- }
- }
|