class ColumnType

Preserve declared type identity separately from a domain's resolved base.

PostgreSQL standard aliases use canonical names, while quoted user types retain their case and qualification.

Methods

__construct(string $name, string|null $schema = null, array $modifiers = [], int $dimensions = 0, bool $unsigned = false, array $values = [], ColumnType|null $base = null, string|null $intervalFields = null)

Create a column type definition.

bool
isArray()

Determine whether the declared type is an array.

Details

at line 22
__construct(string $name, string|null $schema = null, array $modifiers = [], int $dimensions = 0, bool $unsigned = false, array $values = [], ColumnType|null $base = null, string|null $intervalFields = null)

Create a column type definition.

Parameters

string $name
string|null $schema
array $modifiers

Type modifiers, e.g. ['10', '2'] for numeric(10,2).

int $dimensions

array dimensions; 0 for a scalar column

bool $unsigned
array $values

decoded enum or set labels in declaration order

ColumnType|null $base
string|null $intervalFields

lower-case PostgreSQL interval fields, e.g. 'day to second'

at line 37
bool isArray()

Determine whether the declared type is an array.

Return Value

bool