TimestampColumn
extends Column
in package
Class TimestampColumn.
Tags
Table of Contents
- $after : string|null
- $check : Closure
- $comment : string|null
- $database : Database
- $default : Closure|bool|float|int|string|null
- $first : bool
- $length : array<string|int, mixed>
- $null : bool
- $primaryKey : bool
- $type : string
- $uniqueKey : bool
- __call() : mixed
- __construct() : mixed
- Column constructor.
- after() : static
- check() : static
- comment() : static
- default() : static
- first() : static
- notNull() : static
- null() : static
- primaryKey() : static
- uniqueKey() : static
- renderAfter() : string|null
- renderCheck() : string|null
- renderComment() : string|null
- renderDefault() : string|null
- renderFirst() : string|null
- renderLength() : string|null
- renderNull() : string|null
- renderPrimaryKey() : string|null
- renderType() : string
- renderTypeAttributes() : string|null
- renderUniqueKey() : string|null
- sql() : string
Properties
$after
protected
string|null
$after
$check
protected
Closure
$check
$comment
protected
string|null
$comment
$database
protected
Database
$database
$default
protected
Closure|bool|float|int|string|null
$default
$first
protected
bool
$first
= false
$length
protected
array<string|int, mixed>
$length
$null
protected
bool
$null
= false
$primaryKey
protected
bool
$primaryKey
= false
$type
protected
string
$type
= 'timestamp'
$uniqueKey
protected
bool
$uniqueKey
= false
Methods
__call()
public
__call(string $method, array<int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<int, mixed>
Return values
mixed —__construct()
Column constructor.
public
__construct(Database $database, bool|float|int|string|null ...$length) : mixed
Parameters
- $database : Database
- $length : bool|float|int|string|null
Return values
mixed —after()
public
after(string $column) : static
Parameters
- $column : string
Return values
static —check()
public
check(Closure $expression) : static
Parameters
- $expression : Closure
Return values
static —comment()
public
comment(string $comment) : static
Parameters
- $comment : string
Return values
static —default()
public
default(Closure|bool|float|int|string|null $default) : static
Parameters
- $default : Closure|bool|float|int|string|null
Return values
static —first()
public
first() : static
Return values
static —notNull()
public
notNull() : static
Return values
static —null()
public
null() : static
Return values
static —primaryKey()
public
primaryKey() : static
Return values
static —uniqueKey()
public
uniqueKey() : static
Return values
static —renderAfter()
protected
renderAfter() : string|null
Return values
string|null —renderCheck()
protected
renderCheck() : string|null
Return values
string|null —renderComment()
protected
renderComment() : string|null
Return values
string|null —renderDefault()
protected
renderDefault() : string|null
Return values
string|null —renderFirst()
protected
renderFirst() : string|null
Return values
string|null —renderLength()
protected
renderLength() : string|null
Return values
string|null —renderNull()
protected
renderNull() : string|null
Return values
string|null —renderPrimaryKey()
protected
renderPrimaryKey() : string|null
Return values
string|null —renderType()
protected
renderType() : string
Return values
string —renderTypeAttributes()
protected
renderTypeAttributes() : string|null
Return values
string|null —renderUniqueKey()
protected
renderUniqueKey() : string|null
Return values
string|null —sql()
protected
abstract sql() : string