final |
|---|
readonly |
One field of a record class, as a file carries it: its name, its type, whether it must be given, the values an enum allows, whether it is the key, the master data it refers to, and what it means.
| Methods | ||
|---|---|---|
public
|
__construct(
string $name,
string $type,
bool $required,
bool $nullable,
bool $hasDefault,
mixed $default,
list<string>|null $values,
bool $isKey,
?string $references,
?string $description,
RecordSchema|null $listOf = null,
list<string>|null $uniqueWithin = null,
)
|
# |
public
|
isEnum(): bool
|
# |
public
static
|
written(UnitEnum $case): string
|
# |
| Properties | |||
|---|---|---|---|
public
|
string
|
$name
|
# |
public
|
string
|
$type
|
# |
public
|
bool
|
$required
|
# |
public
|
bool
|
$nullable
|
# |
public
|
bool
|
$hasDefault
|
# |
public
|
mixed
|
$default
|
# |
public
|
list<string>|null
|
$values
|
# |
public
|
bool
|
$isKey
|
# |
public
|
?string
|
$references
|
# |
public
|
?string
|
$description
|
# |
public
|
RecordSchema|null
|
$listOf
|
# |
public
|
list<string>|null
|
$uniqueWithin
|
# |