Index
-
\com\setasign\SetaFramework
-
Database
-
Manager
-
Column
- AbstractBlob
- AbstractColumn
- AbstractFloat
- AbstractInteger
- AbstractLengthColumn
- AbstractNoDefault
- AbstractNumeric
- AbstractText
- BigInt
- Binary
- Blob
- Char
- Date
- DateTime
- Decimal
- Double
- EnumColumn
- FloatColumn
- HasCollation
- HasCollationTrait
- Integer
- LongBlob
- LongText
- MediumBlob
- MediumInt
- MediumText
- SmallInt
- Text
- Time
- TinyBlob
- TinyInt
- TinyText
- VarBinary
- VarChar
-
Column
-
Manager
-
Database
com\setasign\SetaFramework\Database\Manager\Column
FloatColumn Class Float
File: /SetaFramework/src/Database/Manager/Column/FloatColumn.php
Class hierarchy
Summary
Methods
- __construct()
- addIndex()
- addPrimaryKey()
- addUnique()
- changeDataType()
- copy()
- getDefault()
- getIndexes()
- getLength()
- getName()
- getOldColumnName()
- getPrecision()
- hasChanged()
- isAllowedNull()
- isUnsigned()
- removeAllIndexes()
- removeIndex()
- rename()
- setAllowNull()
- setDefault()
- setLength()
- setOldColumnName()
- setUnsigned()
Constants
DEFAULT_CURRENT_TIMESTAMP
DEFAULT_NULL
Properties
$columnName
protected string AbstractColumn::$columnName
$default
protected mixed AbstractColumn::$default
$length
protected ?int AbstractLengthColumn::$length
$oldColumnName
protected ?string AbstractColumn::$oldColumnName
$precision
protected ?int AbstractFloat::$precision
Methods
__construct()
public AbstractFloat::__construct (
string $columnName,
?int $length = null,
?int $precision = null
)?int $length = null,
?int $precision = null
Parameters
- $columnName : string
- $length : ?int
- $precision : ?int
addIndex()
public AbstractColumn::addIndex (
string $type = \com\setasign\SetaFramework\Database\Manager\TableSchema::INDEX,
?string $indexName = null
): $this?string $indexName = null
Parameters
- $type : string
- $indexName : ?string
changeDataType()
Change the dataType of a column (with all possible attributes)
Parameters
- $newColumnObject : AbstractColumn
hasChanged()
Checks whether this column is the same as $compareColumn.
Parameters
- $compareColumn : AbstractColumn
- $compareDataType : bool
Check whether both dataTypes are equal.
- $compareName : bool
Check whether both columnNames are equal.
setOldColumnName()
Used for TableSchemaBuilder. Will be ignored for hasChanged
Parameters
- $oldColumnName : string
