CreateForeignKeyDefinitionItem extends AbstractCreateDefinitionItem
Syntax node to structure a foreign key definition.
Table of Contents
Properties
- $columnNames : array<string|int, IndexColumnName>
- $indexName : Identifier
- $name : string
- The index name
- $reference : ReferenceDefinition
- Reference definition
Methods
- __construct() : mixed
- CreateForeignKeyDefinitionItem constructor.
Properties
$columnNames
public
array<string|int, IndexColumnName>
$columnNames
= []
$indexName
public
Identifier
$indexName
$name
The index name
public
string
$name
= ''
$reference
Reference definition
public
ReferenceDefinition
$reference
Methods
__construct()
CreateForeignKeyDefinitionItem constructor.
public
__construct(Identifier $indexName, array<string|int, mixed> $columnNames, ReferenceDefinition $reference) : mixed
Parameters
- $indexName : Identifier
- $columnNames : array<string|int, mixed>
- $reference : ReferenceDefinition