DropSchemaSqlCollector
extends AbstractVisitor
in package
Gathers SQL statements that allow to completely drop the current schema.
Table of Contents
- $constraints : SplObjectStorage
- $platform : AbstractPlatform
- $sequences : SplObjectStorage
- $tables : SplObjectStorage
- __construct() : mixed
- acceptColumn() : void
- acceptForeignKey() : void
- acceptIndex() : void
- acceptNamespace() : void
- Accepts a schema namespace name.
- acceptSchema() : void
- acceptSequence() : void
- acceptTable() : void
- clearQueries() : void
- getQueries() : array<string|int, string>
- initializeQueries() : void
Properties
$constraints
private
SplObjectStorage
$constraints
$platform
private
AbstractPlatform
$platform
$sequences
private
SplObjectStorage
$sequences
$tables
private
SplObjectStorage
$tables
Methods
__construct()
public
__construct(AbstractPlatform $platform) : mixed
Parameters
- $platform : AbstractPlatform
Return values
mixed —acceptColumn()
public
acceptColumn(Table $table, Column $column) : void
Parameters
Return values
void —acceptForeignKey()
public
acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint) : void
Parameters
- $localTable : Table
- $fkConstraint : ForeignKeyConstraint
Return values
void —acceptIndex()
public
acceptIndex(Table $table, Index $index) : void
Parameters
Return values
void —acceptNamespace()
Accepts a schema namespace name.
public
acceptNamespace(mixed $namespaceName) : void
Parameters
- $namespaceName : mixed
-
The schema namespace name to accept.
Return values
void —acceptSchema()
public
acceptSchema(Schema $schema) : void
Parameters
- $schema : Schema
Return values
void —acceptSequence()
public
acceptSequence(Sequence $sequence) : void
Parameters
- $sequence : Sequence
Return values
void —acceptTable()
public
acceptTable(Table $table) : void
Parameters
- $table : Table
Return values
void —clearQueries()
public
clearQueries() : void
Return values
void —getQueries()
public
getQueries() : array<string|int, string>
Return values
array<string|int, string> —initializeQueries()
private
initializeQueries() : void