\Omega\Database\Migration\Field IdField

ID field class.

The IdField represents a string field for database migrations.

Summary

Methods
Properties
Constants
default
__construct
nullable
alter
name
nullable
alter
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$name

$name : string

Field name.

Type

string — Holds the field name.

$nullable

$nullable : bool

Nullable field.

Type

bool — Determine if field is nullable.

$alter

$alter : bool

Alterable field.

Type

bool — Determine if field is alterable.

Methods

default()

default(int  $value) : $this

Set the default value for int field.

Parameters

int $value

Holds the default value for the id field.

Returns

$this —

Returns the current instance for method chaining.

__construct()

__construct(string  $name) : void

AbstractField class constructor.

Parameters

string $name

Holds the field name.

Returns

void —

nullable()

nullable() : $this

Determine if the field is nullable.

Returns

$this —

alter()

alter() : $this

Determine if the field is alterable.

Returns

$this —