ColumnInfo

final readonly class \TYPO3\CMS\Core\Database\Schema\Information\ColumnInfo

Provides subset of column schema information compared to {@see Column} and intended to be cacheable.

Table of Contents

Properties

$autoincrement  : bool
$default  : mixed
$fixed  : bool
$length  : int|null
$name  : string
$notNull  : bool
$precision  : int|null
$scale  : int
$typeName  : string
$unsigned  : bool
$values  : array

Methods

__construct()  : mixed
convertFromDoctrineColumn()  : self
Used in {@see SchemaInformation::buildTableInformation()} to transform doctrine Columns to ColumnInfo.
getType()  : Type

Properties

Methods

__construct()

public __construct(string $name, string $typeName, mixed $default, bool $notNull, int|null $length, int|null $precision, int $scale, bool $fixed, bool $unsigned, bool $autoincrement, string[] $values) : mixed

Parameters

$name : string
$typeName : string
$default : mixed
$notNull : bool
$length : int|null
$precision : int|null
$scale : int
$fixed : bool
$unsigned : bool
$autoincrement : bool
$values : string[]

convertFromDoctrineColumn()

Used in {@see SchemaInformation::buildTableInformation()} to transform doctrine Columns to ColumnInfo.

public static convertFromDoctrineColumn(Column $column) : self

Parameters

$column : Column

Return values

self

getType()

public getType() : Type

Tags

throws
TypesException

Return values

Type
On this page