interface Constraint (View source)

Marker interface for constraints.

Methods

string
getName()

No description

string
getQuotedName(AbstractPlatform $platform)

No description

array
getColumns()

Returns the names of the referencing table columns the constraint is associated with.

array
getQuotedColumns(AbstractPlatform $platform)

Returns the quoted representation of the column names the constraint is associated with.

Details

string getName()

Return Value

string

string getQuotedName(AbstractPlatform $platform)

Parameters

AbstractPlatform $platform

Return Value

string

array getColumns()

Returns the names of the referencing table columns the constraint is associated with.

Return Value

array

array getQuotedColumns(AbstractPlatform $platform)

Returns the quoted representation of the column names the constraint is associated with.

But only if they were defined with one or a column name is a keyword reserved by the platform. Otherwise the plain unquoted value as inserted is returned.

Parameters

AbstractPlatform $platform The platform to use for quotation.

Return Value

array