final class ColumnDeclaration
Public API: explicitly declared with @visibility public.

How a column was declared: the family it belongs to, and the platform's own words for it.

The family is what every platform agrees on, so the shadow can reason about a column without knowing which database it came from. The native text is what that database actually wrote, kept verbatim because only it can say what precision, width or signedness was asked for.

Describe a platform-neutral column typedoctest
$type = new \ZtdQuery\Schema\ColumnType(\ZtdQuery\Schema\ColumnTypeFamily::INTEGER, 'BIGINT');
    $type->family // => \ZtdQuery\Schema\ColumnTypeFamily::INTEGER
    $type->nativeType // => 'BIGINT'

Properties§

public string $nativeType

Methods§

public function __construct(public ColumnTypeFamily $family, public string $nativeType)

Parameters

$familyColumnTypeFamilyThe family every platform agrees this belongs to
$nativeTypestringThe platform's own words for the type, verbatim
Test cases 2

Test cases 41§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 39

Relations§

Constant reads 1
Type declarations 8