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
$autoIncrement
protected
bool
$autoIncrement
= false
Methods
__toString()
Builds the full string for the column's schema.
public
__toString() : string
Return values
string —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.
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
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 —getisNotNull()
Return the variable isNotNull.
protected
getisNotNull() : bool
Return values
bool —getisUnsigned()
Return the variable isUnsigned.
protected
getisUnsigned() : bool