class Domain

Methods

__construct(string $name, ColumnType $type, string|null $schema = null, bool $nullable = true, string|null $default = null, array $checks = [])

Create a domain definition.

Details

at line 15
__construct(string $name, ColumnType $type, string|null $schema = null, bool $nullable = true, string|null $default = null, array $checks = [])

Create a domain definition.

Parameters

string $name
ColumnType $type
string|null $schema
bool $nullable

whether conversion allows NULL, including scalar base-domain restrictions

string|null $default
array $checks