DateTimeDataType extends AbstractDataType

Node representing the DATETIME SQL column type

Table of Contents

Properties

$fixed  : bool
Differentiate between CHAR/VARCHAR and BINARY/VARBINARY
$length  : int
Used by most field types for length/precision information
$options  : array<string|int, mixed>
Extra options for a column that control specific features/flags
$precision  : int
Used for floating point type columns -1 is used to indicate that no value has been set.
$scale  : int
Used for floating point type columns -1 is used to indicate that no value has been set.
$unsigned  : bool
Unsigned flag for numeric columns
$values  : array<string|int, mixed>
Options for ENUM/SET data types

Methods

__construct()  : mixed
DateTimeDataType constructor.
getLength()  : int
getOptions()  : array<string|int, mixed>
getPrecision()  : int
getScale()  : int
getValues()  : array<string|int, mixed>
isFixed()  : bool
isUnsigned()  : bool
setFixed()  : mixed
setLength()  : mixed
setOptions()  : mixed
setPrecision()  : mixed
setScale()  : mixed
setUnsigned()  : mixed
setValues()  : mixed

Properties

$fixed

Differentiate between CHAR/VARCHAR and BINARY/VARBINARY

protected bool $fixed = false

$length

Used by most field types for length/precision information

protected int $length = 0

$options

Extra options for a column that control specific features/flags

protected array<string|int, mixed> $options = []

$precision

Used for floating point type columns -1 is used to indicate that no value has been set.

protected int $precision = -1

$scale

Used for floating point type columns -1 is used to indicate that no value has been set.

protected int $scale = -1

$unsigned

Unsigned flag for numeric columns

protected bool $unsigned = false

$values

Options for ENUM/SET data types

protected array<string|int, mixed> $values

Methods

__construct()

DateTimeDataType constructor.

public __construct(int $length) : mixed
Parameters
$length : int

getLength()

public getLength() : int
Return values
int

getOptions()

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPrecision()

public getPrecision() : int
Return values
int

getScale()

public getScale() : int
Return values
int

getValues()

public getValues() : array<string|int, mixed>
Return values
array<string|int, mixed>

isFixed()

public isFixed() : bool
Return values
bool

isUnsigned()

public isUnsigned() : bool
Return values
bool

setFixed()

public setFixed(bool $fixed) : mixed
Parameters
$fixed : bool

setLength()

public setLength(int $length) : mixed
Parameters
$length : int

setOptions()

public setOptions(array<string|int, mixed> $options) : mixed
Parameters
$options : array<string|int, mixed>

setPrecision()

public setPrecision(int $precision) : mixed
Parameters
$precision : int

setScale()

public setScale(int $scale) : mixed
Parameters
$scale : int

setUnsigned()

public setUnsigned(bool $unsigned) : mixed
Parameters
$unsigned : bool

setValues()

public setValues(array<string|int, mixed> $values) : mixed
Parameters
$values : array<string|int, mixed>

        
On this page

Search results