ColumnInfo

Read onlyYes
FinalYes

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

Internal

This class is only for internal core usage and is not part of the public core API.

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<string|int, mixed>

Methods

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

Properties

$values

public array<string|int, mixed> $values

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, array<string|int, 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 : array<string|int, 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

Search results