0 follower

Final Class Yiisoft\Db\Migration\Service\Generate\ForeignKey

InheritanceYiisoft\Db\Migration\Service\Generate\ForeignKey

Method Details

Hide inherited methods

__construct() public method

public __construct( string $indexName, string $foreignKeyName, string|null $column, string $relatedTable, string $relatedColumn ): mixed
$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,
) {}

            
getColumn() public method

public getColumn( ): string|null

                public function getColumn(): ?string
{
    return $this->column;
}

            
getForeignKeyName() public method

public getForeignKeyName( ): string

                public function getForeignKeyName(): string
{
    return $this->foreignKeyName;
}

            
getIndexName() public method

public getIndexName( ): string

                public function getIndexName(): string
{
    return $this->indexName;
}

            
getRelatedColumn() public method

public getRelatedColumn( ): string

                public function getRelatedColumn(): string
{
    return $this->relatedColumn;
}

            
getRelatedTable() public method

public getRelatedTable( ): string

                public function getRelatedTable(): string
{
    return $this->relatedTable;
}