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