ColumnSchemaBuilderTrait
Column schema builder trait is the schema builder for MySQL databases.
Table of Contents
- $autoIncrement : bool
- autoIncrement() : $this
- Assign column as autoincrement.
- get() : mixed|null
- Get object var.
- set() : $this
- Set object var.
- buildAutoIncrementString() : string
- Builds the autoincrement string for column. Defaults to unsupported.
- getautoIncrement() : bool
- Return the variable autoIncrement.
- getdefault() : int|string
- Return the variable default.
- getisNotNull() : bool
- Return the variable isNotNull.
- getisUnsigned() : bool
- Return the variable isUnsigned.
Properties
$autoIncrement
protected
bool
$autoIncrement
= false
Methods
autoIncrement()
Assign column as autoincrement.
public
autoIncrement() : $this
Return values
$this —get()
Get object var.
public
get(string $type) : mixed|null
Parameters
- $type : string
Return values
mixed|null —set()
Set object var.
public
set(string $type, mixed $value) : $this
Parameters
- $type : string
- $value : mixed
Return values
$this —buildAutoIncrementString()
Builds the autoincrement string for column. Defaults to unsupported.
protected
buildAutoIncrementString() : string
Return values
string —getautoIncrement()
Return the variable autoIncrement.
protected
getautoIncrement() : bool
Return values
bool —getdefault()
Return the variable default.
protected
getdefault() : int|string
Return values
int|string —getisNotNull()
Return the variable isNotNull.
protected
getisNotNull() : bool
Return values
bool —getisUnsigned()
Return the variable isUnsigned.
protected
getisUnsigned() : bool