Documentation

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

Methods

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

        

Search results