\Omega\Database\Migration\Field AbstractField

Abstract field class.

The AbstractField class serves as the base for all database migration fields, providing common functionality such as nullable and alterable properties.

Summary

Methods
Properties
Constants
__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

__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 —