<?php namespace Doctrine\DBAL\Event; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Schema\Table; use InvalidArgumentException; /** * Event Arguments used when the SQL query for dropping tables are generated inside {@see AbstractPlatform}. * * @deprecated */ class SchemaDropTableEventArgs extends SchemaEventArgs { /** @var string|Table */ private $table; private AbstractPlatform $platform; /** @var string|null */ private $sql; /** * @param string|Table $table * * @throws InvalidArgumentException */ public function __construct($table, AbstractPlatform $platform) { $this->table = $table; $this->platform = $platform; } /** @return string|Table */ public function getTable() { return $this->table; } /** @return AbstractPlatform */ public function getPlatform() { return $this->platform; } /** * @param string $sql * * @return SchemaDropTableEventArgs */ public function setSql($sql) { $this->sql = $sql; return $this; } /** @return string|null */ public function getSql() { return $this->sql; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Listeners | Folder | 0755 |
|
|
ConnectionEventArgs.php | File | 531 B | 0644 |
|
SchemaAlterTableAddColumnEventArgs.php | File | 2.02 KB | 0644 |
|
SchemaAlterTableChangeColumnEventArgs.php | File | 1.64 KB | 0644 |
|
SchemaAlterTableEventArgs.php | File | 1.37 KB | 0644 |
|
SchemaAlterTableRemoveColumnEventArgs.php | File | 1.61 KB | 0644 |
|
SchemaAlterTableRenameColumnEventArgs.php | File | 1.88 KB | 0644 |
|
SchemaColumnDefinitionEventArgs.php | File | 1.76 KB | 0644 |
|
SchemaCreateTableColumnEventArgs.php | File | 1.56 KB | 0644 |
|
SchemaCreateTableEventArgs.php | File | 1.82 KB | 0644 |
|
SchemaDropTableEventArgs.php | File | 1.2 KB | 0644 |
|
SchemaEventArgs.php | File | 486 B | 0644 |
|
SchemaIndexDefinitionEventArgs.php | File | 1.51 KB | 0644 |
|
TransactionBeginEventArgs.php | File | 149 B | 0644 |
|
TransactionCommitEventArgs.php | File | 150 B | 0644 |
|
TransactionEventArgs.php | File | 445 B | 0644 |
|
TransactionRollBackEventArgs.php | File | 152 B | 0644 |
|