final class PositionalArgument
    implements Argument
    uses Snapshot
Public API: explicitly declared with @visibility public.

An argument passed by position: func_arg_expr: a_expr.

Source: https://www.postgresql.org/docs/17/sql-syntax-calling-funcs.html#SQL-SYNTAX-CALLING-FUNCS-POSITIONAL.

Reading a positional argumentdoctest
$argument = new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\PositionalArgument(new \SqlSemantics\Platform\PostgreSql\Statement\Literal\NullLiteral());
    [$argument->name(), $argument->value() instanceof \SqlSemantics\Platform\PostgreSql\Statement\Literal\NullLiteral] // => [null, true]

Properties§

public Scalar $value

Methods§

public function __construct(public Scalar $value)

Parameters

$valueScalarThe value passed
public function value(): Scalar

Answers the value passed.

Returns

Test cases 1
public function name(): ?Name

Answers null: a positional argument names no parameter.

Returns

Test cases 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the value.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
Calls 1
public function render(Output $out): void

Writes the value.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 18§

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

Dedicated tests 4
Other tests reaching this symbol 14

Relations§

Instantiated in 1