\Omega\Database\Migration\Field DateTimeField

String field class.

The DateTimeField represents a string field for database migrations.

Summary

Methods
Properties
Constants
default
__construct
nullable
alter
default
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

$default

$default : string|null

Default value for the datetime field.

Type

string|null — Holds the default value or null.

$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(string  $value) : $this

Set the default value for datetime field.

Parameters

string $value

Holds the default value for the datetime 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 —