Final Class Yiisoft\Db\Migration\Service\Generate\ForeignKey
| Inheritance | Yiisoft\Db\Migration\Service\Generate\ForeignKey |
|---|
Public Methods
Method Details
| public mixed __construct ( string $indexName, string $foreignKeyName, string|null $column, string $relatedTable, string $relatedColumn ) | ||
| $indexName | string | |
| $foreignKeyName | string | |
| $column | string|null | |
| $relatedTable | string | |
| $relatedColumn | string | |
public function __construct(
private readonly string $indexName,
private readonly string $foreignKeyName,
private readonly ?string $column,
private readonly string $relatedTable,
private readonly string $relatedColumn,
) {}
| public string getForeignKeyName ( ) |
public function getForeignKeyName(): string
{
return $this->foreignKeyName;
}
| public string getRelatedColumn ( ) |
public function getRelatedColumn(): string
{
return $this->relatedColumn;
}
| public string getRelatedTable ( ) |
public function getRelatedTable(): string
{
return $this->relatedTable;
}
Signup or Login in order to comment.