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\Sqlite\Semantics())->analyze('SELECT NULL');
    $query->facts->scalar($query->field(0)->expression)->nullability // => \SqlSemantics\Platform\Sqlite\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 29§

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

Dedicated tests 1
Other tests reaching this symbol 28

Relations§

Instantiated in 53
Type declarations 42