DoubleDataType extends FloatDataType
Node representing the DOUBLE 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
- FloatDataType 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()
FloatDataType constructor.
public
__construct(array<string|int, mixed> $dataTypeDecimals, array<string|int, mixed> $dataTypeOptions) : mixed
Parameters
- $dataTypeDecimals : array<string|int, mixed>
- $dataTypeOptions : array<string|int, mixed>
getLength()
public
getLength() : int
Return values
intgetOptions()
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getPrecision()
public
getPrecision() : int
Return values
intgetScale()
public
getScale() : int
Return values
intgetValues()
public
getValues() : array<string|int, mixed>
Return values
array<string|int, mixed>isFixed()
public
isFixed() : bool
Return values
boolisUnsigned()
public
isUnsigned() : bool
Return values
boolsetFixed()
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>