class BlueprintState (View source)

Properties

protected Blueprint $blueprint

The blueprint instance.

protected Connection $connection

The connection instance.

protected Grammar $grammar

The grammar instance.

Methods

void
__construct(Blueprint $blueprint, Connection $connection, Grammar $grammar)

Create a new blueprint state instance.

getPrimaryKey()

Get the primary key.

getColumns()

Get the columns.

getIndexes()

Get the indexes.

getForeignKeys()

Get the foreign keys.

update(Fluent $command)

No description

Details

void __construct(Blueprint $blueprint, Connection $connection, Grammar $grammar)

Create a new blueprint state instance.

Parameters

Blueprint $blueprint
Connection $connection
Grammar $grammar

Return Value

void

IndexDefinition|null getPrimaryKey()

Get the primary key.

Return Value

IndexDefinition|null

ColumnDefinition[] getColumns()

Get the columns.

Return Value

ColumnDefinition[]

IndexDefinition[] getIndexes()

Get the indexes.

Return Value

IndexDefinition[]

ForeignKeyDefinition[] getForeignKeys()

Get the foreign keys.

Return Value

ForeignKeyDefinition[]

update(Fluent $command)

No description

Parameters

Fluent $command