Documentation

ColumnSchemaBuilder extends ColumnSchemaBuilder
in package
Uses ColumnSchemaBuilderTrait

Column schema builder class is the schema builder for MySQL databases.

Table of Contents

$autoIncrement  : bool
__toString()  : string
Builds the full string for the column's schema.
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.
buildCompleteString()  : string
Returns the complete column definition from input format.
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

__toString()

Builds the full string for the column's schema.

public __toString() : string
Return values
string

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.

protected buildAutoIncrementString() : string
Return values
string

buildCompleteString()

Returns the complete column definition from input format.

protected buildCompleteString(string $format) : string
Parameters
$format : string

the format of the definition.

Tags
since
2.0.8
Return values
string

a string containing the complete column definition.

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