classColumnGeneration
final class ColumnGeneration
Public API: explicitly declared with
@visibility public.A typed generation clause, including identity options or its computed expression.
$accept = static fn (\SqlSemantics\Core\Schema\ColumnGeneration $value): string => $value->kind->value;
$accept instanceof \Closure // => trueProperties§
public GenerationKind $kindpublic Element $clausepublic ?Element $expressionMethods§
public function __construct(
public GenerationKind $kind,
public Element $clause,
public ?Element $expression,
)An identity has no computation expression; virtual and stored columns do.
Parameters
$kind | GenerationKind | |
$clause | Element | |
$expression | ?Element |
Throws
InvalidArgumentException When supplied state violates its invariantsCalls 3
- static-call Invariant::ensure() line 28
- class-const GenerationKind::Identity() line 28
- static-call Invariant::elements() line 29
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ColumnGenerationTestcalls
Other tests reaching this symbol 6
SchemaAnalyzerTestcallsColumnPropertiesTestcallsSchemaChangesTestcallsGenerationKindTestcallsInvariantTestcallsSchemaTestcalls