classConditionalColumn
final class ConditionalColumn
implements Resolution
uses Snapshot
Public API: explicitly declared with
@visibility public.A name whose resolution depends on declarations missing from the context.
The candidates are the places the name can resolve to once the missing inputs are known. A known candidate in a farther scope is not chosen while a nearer scope is incompletely known.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT a FROM t');
$resolution = $query->field('a')->resolution;
[$resolution->relations[0] === $query->inputRelation(), $resolution->missing[0]->describe()] // => [true, 'the declaration of relation t']Properties§
public list<ResolvedColumn> $candidatespublic list<Relation> $relationspublic non-empty-list<MissingInput> $missingpublic Name $nameMethods§
public function __construct(
public Name $name,
list<ResolvedColumn> $candidates,
list<Relation> $relations,
list<MissingInput> $missing,
)Parameters
$name | Name | The column name |
$candidates | list<ResolvedColumn> | The known slots the name can resolve to |
$relations | list<Relation> | The incompletely known occurrences that can own the name |
$missing | list<MissingInput> | The inputs needed to decide the resolution; at least one |
Calls 4
- static-call Check::listOf() line 52
- class-const ResolvedColumn::class() line 52
- class-const Relation::class() line 53
- class-const MissingInput::class() line 54