final class AggregateArguments
    implements Clause
    uses Snapshot
Public API: explicitly declared with @visibility public.

The argument list of an aggregate: (*), (args), (ORDER BY args) or (args ORDER BY args).

Mirrors the two-part list aggr_args builds: the direct arguments and, for an ordered-set aggregate, the aggregated arguments after ORDER BY. * is an aggregate without arguments. The arguments are kept as written; the server folds a repeated VARIADIC argument of an ordered-set aggregate into one. Source: https://www.postgresql.org/docs/17/sql-createaggregate.html.

Telling the star formdoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Signature\AggregateArguments([]))->star() // => true

Properties§

public list<FunctionParameter> $direct
public list<FunctionParameter>|null $ordered

Methods§

public function __construct(
    list<FunctionParameter> $direct,
    list<FunctionParameter>|null $ordered = null,
)

Parameters

$directlist<FunctionParameter>The direct arguments; empty with neither ORDER BY nor arguments for `*`
$orderedlist<FunctionParameter>|nullThe arguments after ORDER BY, at least one; null without ORDER BY
Calls 3
public function deriveClause(Derivation $derivation, Environment $environment): void
public function render(Output $out): void

Writes the list in parentheses.

Parameters

$outOutput
Test cases 1
Calls 4

Test cases 8§

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 4

Relations§

Instantiated in 4
Method calls 1
Type declarations 5