\rex_sql_column

Class to represent sql columns.

Summary

Methods
Properties
Constants
__construct()
setModified()
isModified()
setName()
getName()
setType()
getType()
setNullable()
isNullable()
setDefault()
getDefault()
setExtra()
getExtra()
setComment()
getComment()
equals()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string  $name, string  $type, bool  $nullable = false, null|string  $default = null, null|string  $extra = null, null|string  $comment = null) : mixed

Parameters

string $name
string $type
bool $nullable
null|string $default
null|string $extra
null|string $comment

Returns

mixed —

setModified()

setModified(bool  $modified) : $this

Parameters

bool $modified

Returns

$this —

isModified()

isModified() : bool

Returns

bool —

setName()

setName(string  $name) : $this

Parameters

string $name

Returns

$this —

getName()

getName() : string

Returns

string —

setType()

setType(string  $type) : $this

Parameters

string $type

Returns

$this —

getType()

getType() : string

Returns

string —

The column type, including its size, e.g. int(10) or varchar(255)

setNullable()

setNullable(bool  $nullable) : $this

Parameters

bool $nullable

Returns

$this —

isNullable()

isNullable() : bool

Returns

bool —

setDefault()

setDefault(null|string  $default) : $this

Parameters

null|string $default

Returns

$this —

getDefault()

getDefault() : null|string

Returns

null|string —

setExtra()

setExtra(null|string  $extra) : $this

Parameters

null|string $extra

Returns

$this —

getExtra()

getExtra() : null|string

Returns

null|string —

setComment()

setComment(null|string  $comment) : $this

Parameters

null|string $comment

Returns

$this —

getComment()

getComment() : null|string

Returns

null|string —

equals()

equals(self  $column) : bool

Parameters

self $column

Returns

bool —