Server IP : 66.29.132.124 / Your IP : 18.223.238.150 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/vendor/doctrine/dbal/src/Event/ |
Upload File : |
<?php namespace Doctrine\DBAL\Event; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Schema\Table; use function array_merge; use function func_get_args; use function is_array; /** * Event Arguments used when SQL queries for creating tables are generated inside {@see AbstractPlatform}. */ class SchemaCreateTableEventArgs extends SchemaEventArgs { /** @var Table */ private $table; /** @var mixed[][] */ private $columns; /** @var mixed[] */ private $options; /** @var AbstractPlatform */ private $platform; /** @var string[] */ private $sql = []; /** * @param mixed[][] $columns * @param mixed[] $options */ public function __construct(Table $table, array $columns, array $options, AbstractPlatform $platform) { $this->table = $table; $this->columns = $columns; $this->options = $options; $this->platform = $platform; } /** * @return Table */ public function getTable() { return $this->table; } /** * @return mixed[][] */ public function getColumns() { return $this->columns; } /** * @return mixed[] */ public function getOptions() { return $this->options; } /** * @return AbstractPlatform */ public function getPlatform() { return $this->platform; } /** * Passing multiple SQL statements as an array is deprecated. Pass each statement as an individual argument instead. * * @param string|string[] $sql * * @return SchemaCreateTableEventArgs */ public function addSql($sql) { $this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args()); return $this; } /** * @return string[] */ public function getSql() { return $this->sql; } }