| Methods |
public
|
__construct(string $name, string[] $columns, string[] $flags = [], mixed[] $options = [])
|
#
|
public
|
getColumns()
{@inheritDoc}
|
#
|
public
|
getQuotedColumns(AbstractPlatform $platform)
{@inheritDoc}
Parameters
| $platform |
The platform to use for quotation.
|
Implements
|
#
|
public
|
getUnquotedColumns(): string[]
|
#
|
public
|
getFlags(): string[]
Returns platform specific flags for unique constraint.
Returns platform specific flags for unique constraint.
|
#
|
public
|
addFlag(string $flag): $this
Adds flag for a unique constraint that translates to platform specific handling.
Adds flag for a unique constraint that translates to platform specific handling.
|
#
|
public
|
hasFlag(string $flag): bool
Does this unique constraint have a specific flag?
Does this unique constraint have a specific flag?
|
#
|
public
|
removeFlag(string $flag): void
Removes a flag.
|
#
|
public
|
hasOption(string $name): bool
Does this unique constraint have a specific option?
Does this unique constraint have a specific option?
|
#
|
public
|
getOption(string $name): mixed
|
#
|
public
|
getOptions(): mixed[]
|
#
|
protected
|
addColumn(string $column): void
Adds a new column to the unique constraint.
Adds a new column to the unique constraint.
|
#
|