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

Exactly one output field has the looked-up name.

Finding the only field with a namedoctest
$operation = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT 1 AS a');
    $operation->lookupField('a')->field->position // => 0

Properties§

public Field $field

Methods§

public function __construct(public Field $field)

Parameters

$fieldFieldThe field

Test cases 1§

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

Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 1
Type declarations 1