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 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,
) {}

            
getColumn() public method

public string|null getColumn ( )

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

            
getForeignKeyName() public method

public string getForeignKeyName ( )

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

            
getIndexName() public method

public string getIndexName ( )

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

            
getRelatedColumn() public method

public string getRelatedColumn ( )

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

            
getRelatedTable() public method

public string getRelatedTable ( )

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