ReservedKeywordsValidator
in package
implements
Visitor
Tags
Table of Contents
Interfaces
- Visitor
- Schema Visitor used for Validation or Generation purposes.
Properties
- $keywordLists : array<string|int, KeywordList>
- $violations : array<string|int, string>
Methods
- __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>
Properties
$keywordLists
private
array<string|int, KeywordList>
$keywordLists
$violations
private
array<string|int, string>
$violations
= []
Methods
__construct()
public
__construct(array<string|int, KeywordList> $keywordLists) : mixed
Parameters
- $keywordLists : array<string|int, KeywordList>
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
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
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>
isReservedWord()
private
isReservedWord(string $word) : array<string|int, string>
Parameters
- $word : string