Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
64
vendor/doctrine/dbal/src/Event/SchemaDropTableEventArgs.php
vendored
Normal file
64
vendor/doctrine/dbal/src/Event/SchemaDropTableEventArgs.php
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue