Class Floating

Summary

Fully Qualified Name: Zend\Db\Sql\Ddl\Column\Floating
Extends: AbstractPrecisionColumn

Description

Column representing a FLOAT type.

Cannot name a class "float" starting in PHP 7, as it's a reserved keyword; hence, "floating", with a type of "FLOAT".

Methods

Name Description Defined By
__construct() {@inheritDoc} AbstractPrecisionColumn
addConstraint() Column
getDecimal() AbstractPrecisionColumn
getDefault() Column
getDigits() AbstractPrecisionColumn
getExpressionData() Column
getLength() AbstractLengthColumn
getName() Column
getOptions() Column
isNullable() Column
setDecimal() AbstractPrecisionColumn
setDefault() Column
setDigits() AbstractPrecisionColumn
setLength() AbstractLengthColumn
setName() Column
setNullable() Column
setOption() Column
setOptions() Column

Method Details

__construct()

{@inheritDoc}

Parameter Name Type Description
$decimal int|null
$digits int
$name
$nullable
$default
$options

Returns:

addConstraint()

Parameter Name Type Description
$constraint \ConstraintInterface

Returns: self Provides a fluent interface

getDecimal()

Returns: int|null

getDefault()

Returns: null|string|int

getDigits()

Returns: int

getExpressionData()

Returns: array

getLength()

Returns: int

getName()

Returns: null|string

getOptions()

Returns: array

isNullable()

Returns: bool

setDecimal()

Parameter Name Type Description
$decimal int|null

Returns: self Provides a fluent interface

setDefault()

Parameter Name Type Description
$default null|string|int

Returns: self Provides a fluent interface

setDigits()

Parameter Name Type Description
$digits int

Returns: self

setLength()

Parameter Name Type Description
$length int

Returns: self Provides a fluent interface

setName()

Parameter Name Type Description
$name string

Returns: self Provides a fluent interface

setNullable()

Parameter Name Type Description
$nullable bool

Returns: self Provides a fluent interface

setOption()

Parameter Name Type Description
$name string
$value string

Returns: self Provides a fluent interface

setOptions()

Parameter Name Type Description
$options array

Returns: self Provides a fluent interface

Top