Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5953460
SchemaAlterTableEventArgs.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SchemaAlterTableEventArgs.php
View Options
<?php
namespace
Doctrine\DBAL\Event
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
use
Doctrine\DBAL\Schema\TableDiff
;
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}.
*
* @deprecated
*/
class
SchemaAlterTableEventArgs
extends
SchemaEventArgs
{
private
TableDiff
$tableDiff
;
private
AbstractPlatform
$platform
;
/** @var string[] */
private
array
$sql
=
[];
public
function
__construct
(
TableDiff
$tableDiff
,
AbstractPlatform
$platform
)
{
$this
->
tableDiff
=
$tableDiff
;
$this
->
platform
=
$platform
;
}
/** @return TableDiff */
public
function
getTableDiff
()
{
return
$this
->
tableDiff
;
}
/** @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 SchemaAlterTableEventArgs
*/
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 02:08 (4 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3e/74/c68380fe15649a5ec50ba045191b
Default Alt Text
SchemaAlterTableEventArgs.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment