final class DependentField
    implements FieldLookup
    uses Snapshot
Public API: explicitly declared with @visibility public.

A field lookup that missing declarations leave undecided.

The known fields with the name are candidates; an unexpanded star may add further fields with that name, so no candidate is chosen.

Looking a name up in an open shapedoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT * FROM t');
    $operation->lookupField('a') instanceof \SqlSemantics\Platform\PostgreSql\Model\Statement\Shape\DependentField // => true

Properties§

public list<Field> $candidates
public non-empty-list<MissingInput> $missing
public string $name

Methods§

public function __construct(
    public string $name,
    list<Field> $candidates,
    list<MissingInput> $missing,
)

Parameters

$namestringThe looked-up name
$candidateslist<Field>The known fields with the name
$missinglist<MissingInput>The inputs needed to decide the lookup; at least one
Calls 3

Relations§

Instantiated in 2
Type declarations 1