ReservedKeywordsValidator
implements
Visitor
Interfaces, Classes, Traits and Enums
- Visitor
- Schema Visitor used for Validation or Generation purposes.
Table of Contents
-
$keywordLists
: array<string|int, KeywordList>
-
$violations
: array<string|int, string>
-
__construct()
: mixed
-
acceptColumn()
: void
-
acceptForeignKey()
: void
-
acceptIndex()
: void
-
acceptSchema()
: void
-
acceptSequence()
: void
-
acceptTable()
: void
-
getViolations()
: array<string|int, string>
-
addViolation()
: void
-
isReservedWord()
: array<string|int, string>
$keywordLists
private
array<string|int, KeywordList>
$keywordLists
$violations
private
array<string|int, string>
$violations
= []
__construct()
public
__construct(array<string|int, KeywordList> $keywordLists) : mixed
Parameters
-
$keywordLists
: array<string|int, KeywordList>
-
Return values
mixed
—
acceptColumn()
public
acceptColumn(Table $table, Column $column) : void
Parameters
-
$table
: Table
-
-
$column
: Column
-
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
-
$table
: Table
-
-
$index
: Index
-
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
—
getViolations()
public
getViolations() : array<string|int, string>
Return values
array<string|int, string>
—
addViolation()
private
addViolation(string $asset, array<string|int, string> $violatedPlatforms) : void
Parameters
-
$asset
: string
-
-
$violatedPlatforms
: array<string|int, string>
-
Return values
void
—
isReservedWord()
private
isReservedWord(string $word) : array<string|int, string>
Parameters
-
$word
: string
-
Return values
array<string|int, string>
—