final class ScalarFact
    uses Snapshot
Public API: explicitly declared with @visibility public.

What an operation derived for one scalar expression at its use position.

Reading the facts of an expressiondoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT NULL');
    $query->facts->scalar($query->field(0)->expression)->nullability // => \SqlSemantics\Platform\PostgreSql\Model\Statement\Type\Nullability::Nullable

Properties§

public TypeFact $type
public Nullability $nullability
public Resolution|null $resolution = null

Methods§

public function __construct(
    public TypeFact $type,
    public Nullability $nullability,
    public Resolution|null $resolution = null,
)

Parameters

$typeTypeFactWhat is known about the type
$nullabilityNullabilityWhether the value can be NULL
$resolutionResolution|nullThe name resolution when the expression is a name use

Test cases 51§

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

Other tests reaching this symbol 51

Relations§

Instantiated in 99
Type declarations 98