IColumn
in
Object representation of a column.
Tags
Attributes
- #[Consumable]
- $since: '35.0.0'
Table of Contents
Methods
- getAutoincrement() : bool
- Returns whether this column is an autoincrement column.
- getDefault() : mixed
- getFixed() : bool
- getLength() : int|null
- getNotnull() : bool
- getPrecision() : int
- getScale() : int
- getType() : ColumnType
- Returns the type of this column.
- getUnsigned() : bool
- setDefault() : self
- setFixed() : self
- setLength() : self
- setNotnull() : self
- setPrecision() : self
- setScale() : self
- setType() : self
- setUnsigned() : self
Methods
getAutoincrement()
Returns whether this column is an autoincrement column.
public
getAutoincrement() : bool
Tags
Return values
boolgetDefault()
public
getDefault() : mixed
Tags
getFixed()
public
getFixed() : bool
Tags
Return values
boolgetLength()
public
getLength() : int|null
Tags
Return values
int|nullgetNotnull()
public
getNotnull() : bool
Tags
Return values
boolgetPrecision()
public
getPrecision() : int
Tags
Return values
intgetScale()
public
getScale() : int
Tags
Return values
intgetType()
Returns the type of this column.
public
getType() : ColumnType
Note that ColumnType::getName() returns a \OCP\DB\Types::* value.
Tags
Return values
ColumnTypegetUnsigned()
public
getUnsigned() : bool
Tags
Return values
boolsetDefault()
public
setDefault(mixed $default) : self
Parameters
- $default : mixed
Tags
Return values
selfsetFixed()
public
setFixed(bool $fixed) : self
Parameters
- $fixed : bool
Tags
Return values
selfsetLength()
public
setLength(int|null $length) : self
Parameters
- $length : int|null
Tags
Return values
selfsetNotnull()
public
setNotnull(bool $notnull) : self
Parameters
- $notnull : bool
Tags
Return values
selfsetPrecision()
public
setPrecision(int $precision) : self
Parameters
- $precision : int
Tags
Return values
selfsetScale()
public
setScale(int $scale) : self
Parameters
- $scale : int
Tags
Return values
selfsetType()
public
setType(Types::*|ColumnType $type) : self
Parameters
- $type : Types::*|ColumnType
Tags
Return values
selfsetUnsigned()
public
setUnsigned(bool $unsigned) : self
Parameters
- $unsigned : bool