rex_sql_column
in package
Class to represent sql columns.
Tags
Table of Contents
Methods
- __construct() : mixed
- equals() : bool
- getComment() : string|null
- getDefault() : string|null
- getExtra() : string|null
- getName() : string
- getType() : string
- isModified() : bool
- isNullable() : bool
- setComment() : $this
- setDefault() : $this
- setExtra() : $this
- setModified() : $this
- setName() : $this
- setNullable() : $this
- setType() : $this
Methods
__construct()
public
__construct(string $name, string $type[, bool $nullable = false ][, string|null $default = null ][, string|null $extra = null ][, string|null $comment = null ]) : mixed
Parameters
- $name : string
- $type : string
- $nullable : bool = false
- $default : string|null = null
- $extra : string|null = null
- $comment : string|null = null
equals()
public
equals(self $column) : bool
Parameters
- $column : self
Return values
boolgetComment()
public
getComment() : string|null
Return values
string|nullgetDefault()
public
getDefault() : string|null
Return values
string|nullgetExtra()
public
getExtra() : string|null
Return values
string|nullgetName()
public
getName() : string
Return values
stringgetType()
public
getType() : string
Return values
string —The column type, including its size, e.g. int(10) or varchar(255)
isModified()
public
isModified() : bool
Return values
boolisNullable()
public
isNullable() : bool
Return values
boolsetComment()
public
setComment(string|null $comment) : $this
Parameters
- $comment : string|null
Return values
$thissetDefault()
public
setDefault(string|null $default) : $this
Parameters
- $default : string|null
Return values
$thissetExtra()
public
setExtra(string|null $extra) : $this
Parameters
- $extra : string|null
Return values
$thissetModified()
public
setModified(bool $modified) : $this
Parameters
- $modified : bool
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetNullable()
public
setNullable(bool $nullable) : $this
Parameters
- $nullable : bool
Return values
$thissetType()
public
setType(string $type) : $this
Parameters
- $type : string