final class Ordering
Public API: explicitly declared with @visibility public.

A result ordering expression with explicit direction and NULL placement.

Accept this semantic value in a database-independent consumerdoctest
$consume = static fn (\SqlSemantics\Core\Model\Ordering $value): string => $value::class;
    $consume instanceof \Closure // => true

Properties§

public Expression $expression
public bool $descending = false
public bool|null $nullsFirst = null

Methods§

public function __construct(
    public Expression $expression,
    public bool $descending = false,
    public bool|null $nullsFirst = null,
)

Parameters

$expressionExpressionSort expression
$descendingboolDescending order
$nullsFirstbool|nullExplicit NULLS FIRST/LAST; null uses the dialect default

Test cases 60§

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 59

Relations§

Instantiated in 1