ColumnDefinition
in package
Tags
Table of Contents
- $autoincrement : mixed
- $base : mixed
- $default : mixed
- $limit : mixed
- $name : mixed
- $null : mixed
- $precision : mixed
- $scale : mixed
- $type : mixed
- $unsigned : mixed
- __construct() : mixed
- Constructor.
- __toString() : string
- getDefault() : string
- getLimit() : int
- getName() : string
- getSqlType() : string
- getType() : string
- isAutoIncrement() : bool
- isNull() : bool
- isUnsigned() : bool
- precision() : int
- scale() : int
- setAutoIncrement() : void
- setDefault() : void
- setLimit() : void
- setName() : void
- setNull() : void
- setPrecision() : void
- setScale() : void
- setType() : void
- setUnsigned() : void
- toSql() : string
- addColumnOptions() : mixed
Properties
$autoincrement
protected
mixed
$autoincrement
$base
protected
mixed
$base
$default
protected
mixed
$default
$limit
protected
mixed
$limit
$name
protected
mixed
$name
$null
protected
mixed
$null
$precision
protected
mixed
$precision
$scale
protected
mixed
$scale
$type
protected
mixed
$type
$unsigned
protected
mixed
$unsigned
Methods
__construct()
Constructor.
public
__construct(mixed $base, mixed $name, mixed $type[, mixed $limit = null ][, mixed $precision = null ][, mixed $scale = null ][, mixed $unsigned = null ][, mixed $default = null ][, mixed $null = null ][, mixed $autoincrement = null ]) : mixed
Parameters
- $base : mixed
- $name : mixed
- $type : mixed
- $limit : mixed = null
- $precision : mixed = null
- $scale : mixed = null
- $unsigned : mixed = null
- $default : mixed = null
- $null : mixed = null
- $autoincrement : mixed = null
Return values
mixed —__toString()
public
__toString() : string
Return values
string —getDefault()
public
getDefault() : string
Return values
string —getLimit()
public
getLimit() : int
Return values
int —getName()
public
getName() : string
Return values
string —getSqlType()
public
getSqlType() : string
Return values
string —getType()
public
getType() : string
Return values
string —isAutoIncrement()
public
isAutoIncrement() : bool
Return values
bool —isNull()
public
isNull() : bool
Return values
bool —isUnsigned()
public
isUnsigned() : bool
Return values
bool —precision()
public
precision() : int
Return values
int —scale()
public
scale() : int
Return values
int —setAutoIncrement()
public
setAutoIncrement(bool $autoincrement) : void
Parameters
- $autoincrement : bool
Return values
void —setDefault()
public
setDefault(string $default) : void
Parameters
- $default : string
Return values
void —setLimit()
public
setLimit(int $limit) : void
Parameters
- $limit : int
Return values
void —setName()
public
setName(string $name) : void
Parameters
- $name : string
Return values
void —setNull()
public
setNull(bool $null) : void
Parameters
- $null : bool
Return values
void —setPrecision()
public
setPrecision(int $precision) : void
Parameters
- $precision : int
Return values
void —setScale()
public
setScale(int $scale) : void
Parameters
- $scale : int
Return values
void —setType()
public
setType(string $type) : void
Parameters
- $type : string
Return values
void —setUnsigned()
public
setUnsigned(bool $unsigned) : void
Parameters
- $unsigned : bool
Return values
void —toSql()
public
toSql() : string
Return values
string —addColumnOptions()
protected
addColumnOptions(string $sql, array<string|int, mixed> $options) : mixed
Parameters
- $sql : string
- $options : array<string|int, mixed>