Stub class for backwards compatibility.

Since PHP 7 adds "float" as a reserved keyword, we can no longer have a class named that and retain PHP 7 compatibility. The original class has been renamed to "Floating", and this class is now an extension of it. It raises an E_USER_DEPRECATED to warn users to migrate.

deprecated
package Default
inherited_from \Zend\Db\Sql\Ddl\Column\Floating

 Methods

{@inheritDoc}

__construct($name, $digits = null, $decimal = null, $nullable = false, $default = null, array $options = array()

Raises a deprecation notice.

Parameters

$name

$digits

$decimal

$nullable

$default

$options

__construct()

__construct(null|string $name = null, boolean $nullable = false, mixed|null $default = null, array<mixed,mixed> $options = array()
Inherited

Parameters

$name

nullstring

$nullable

boolean

$default

mixednull

$options

array<mixed,mixed>

addConstraint()

addConstraint(\Zend\Db\Sql\Ddl\Constraint\ConstraintInterface $constraint) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$constraint

\Zend\Db\Sql\Ddl\Constraint\ConstraintInterface

Returns

\Zend\Db\Sql\Ddl\Column\Float

getDecimal()

getDecimal() : integer | null
Inherited

Returns

integernull

getDefault()

getDefault() : null | string | integer
Inherited
inherited_from \Zend\Db\Sql\Ddl\Column\ColumnInterface::getDefault()

Returns

nullstringinteger

getDigits()

getDigits() : integer
Inherited

Returns

integer

getExpressionData()

getExpressionData() : array
Inherited

Returns

array

getLength()

getLength() : integer
Inherited

Returns

integer

getName()

getName() : null | string
Inherited
inherited_from \Zend\Db\Sql\Ddl\Column\ColumnInterface::getName()

Returns

nullstring

getOptions()

getOptions() : array
Inherited
inherited_from \Zend\Db\Sql\Ddl\Column\ColumnInterface::getOptions()

Returns

array

isNullable()

isNullable() : boolean
Inherited
inherited_from \Zend\Db\Sql\Ddl\Column\ColumnInterface::isNullable()

Returns

boolean

setDecimal()

setDecimal(integer|null $decimal) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$decimal

integernull

Returns

\Zend\Db\Sql\Ddl\Column\Float

setDefault()

setDefault(null|string|integer $default) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$default

nullstringinteger

Returns

\Zend\Db\Sql\Ddl\Column\Float

setDigits()

setDigits(integer $digits) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$digits

integer

Returns

\Zend\Db\Sql\Ddl\Column\Float

setLength()

setLength(integer $length) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$length

integer

Returns

\Zend\Db\Sql\Ddl\Column\Float

setName()

setName(string $name) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$name

string

Returns

\Zend\Db\Sql\Ddl\Column\Float

setNullable()

setNullable(boolean $nullable) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$nullable

boolean

Returns

\Zend\Db\Sql\Ddl\Column\Float

setOption()

setOption(string $name, string $value) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$name

string

$value

string

Returns

\Zend\Db\Sql\Ddl\Column\Float

setOptions()

setOptions(array $options) : \Zend\Db\Sql\Ddl\Column\Float
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$options

array

Returns

\Zend\Db\Sql\Ddl\Column\Float

getLengthExpression()

getLengthExpression() : string
Inherited

Returns

string

 Properties

 

$constraints

$constraints : array<mixed,\Zend\Db\Sql\Ddl\Constraint\ConstraintInterface>

Default

array()
 

$decimal

$decimal : integer | null

Default

 

$default

$default : null | string | integer

Default

 

$isNullable

$isNullable : boolean

Default

false
 

$length

$length : integer

Default

 

$name

$name : string

Default

''
 

$options

$options : array

Default

array()
 

$specification

$specification : string

Default

'%s %s'
 

$type

$type : string

Default

'INTEGER'