SchemaAlterTableAddColumnEventArgs
extends SchemaEventArgs
in package
Event Arguments used when SQL queries for adding table columns are generated inside Doctrine\DBAL\Platform\*Platform.
Tags
Table of Contents
- $_column : Column
- $_emptyEventArgsInstance : EventArgs
- Single instance of EventArgs.
- $_platform : AbstractPlatform
- $_preventDefault : bool
- $_sql : array<string|int, mixed>
- $_tableDiff : TableDiff
- __construct() : mixed
- addSql() : SchemaAlterTableAddColumnEventArgs
- getColumn() : Column
- getEmptyInstance() : EventArgs
- Gets the single, empty and immutable EventArgs instance.
- getPlatform() : AbstractPlatform
- getSql() : array<string|int, mixed>
- getTableDiff() : TableDiff
- isDefaultPrevented() : bool
- preventDefault() : SchemaEventArgs
Properties
$_column
private
Column
$_column
$_emptyEventArgsInstance
Single instance of EventArgs.
private
static EventArgs
$_emptyEventArgsInstance
$_platform
private
AbstractPlatform
$_platform
$_preventDefault
private
bool
$_preventDefault
= false
$_sql
private
array<string|int, mixed>
$_sql
= array()
$_tableDiff
private
TableDiff
$_tableDiff
Methods
__construct()
public
__construct(Column $column, TableDiff $tableDiff, AbstractPlatform $platform) : mixed
Parameters
- $column : Column
- $tableDiff : TableDiff
- $platform : AbstractPlatform
Return values
mixed —addSql()
public
addSql(string|array<string|int, mixed> $sql) : SchemaAlterTableAddColumnEventArgs
Parameters
- $sql : string|array<string|int, mixed>
Return values
SchemaAlterTableAddColumnEventArgs —getColumn()
public
getColumn() : Column
Return values
Column —getEmptyInstance()
Gets the single, empty and immutable EventArgs instance.
public
static getEmptyInstance() : EventArgs
This instance will be used when events are dispatched without any parameter, like this: EventManager::dispatchEvent('eventname');
The benefit from this is that only one empty instance is instantiated and shared (otherwise there would be instances for every dispatched in the abovementioned form).
Tags
Return values
EventArgs —getPlatform()
public
getPlatform() : AbstractPlatform
Return values
AbstractPlatform —getSql()
public
getSql() : array<string|int, mixed>
Return values
array<string|int, mixed> —getTableDiff()
public
getTableDiff() : TableDiff
Return values
TableDiff —isDefaultPrevented()
public
isDefaultPrevented() : bool
Return values
bool —preventDefault()
public
preventDefault() : SchemaEventArgs