class FloatResolver extends Resolver

FLOAT(size, d)

A floating point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter. This syntax is deprecated in MySQL 8.0.17, and it will be removed in future MySQL versions

FLOAT(p)

A floating point number. MySQL uses the p value to determine whether to use FLOAT or DOUBLE for the resulting data type. If p is from 0 to 24, the data type becomes FLOAT(). If p is from 25 to 53, the data type becomes DOUBLE()

Methods

__construct(Column $column)

Constructor.

from  Resolver
string
fake()

Get the row string form database factory, then return the string for Seeder class.

string
migration()

Get the row string for migration file, then return the string for migration class.

string
last(string $migration)

Finally process for resolvers

from  Resolver
mixed
__get(string $property)

Reading data from inaccessible (protected or private) or non-existing properties.

from  Resolver

Details

in Resolver at line 19
__construct(Column $column)

Constructor.

Parameters

Column $column

The column.

at line 24
string fake()

Get the row string form database factory, then return the string for Seeder class.

Return Value

string

The method returns a Seeder class row string

at line 34
string migration()

Get the row string for migration file, then return the string for migration class.

Return Value

string

The method returns a Migration file row string

in Resolver at line 49
string last(string $migration)

Finally process for resolvers

Parameters

string $migration

The migration payload before post processing

Return Value

string

The method returns the migration payload after post processing

in Resolver at line 68
mixed __get(string $property)

Reading data from inaccessible (protected or private) or non-existing properties.

Parameters

string $property

The property name.

Return Value

mixed

The value of the column property.