final class AggregateSignature
    implements ObjectReference
    uses Snapshot
Public API: explicitly declared with @visibility public.

An aggregate named with its argument list, as aggregate_with_argtypes writes it.

Mirrors PostgreSQL's ObjectWithArgs for aggregates. Source: https://www.postgresql.org/docs/17/sql-dropaggregate.html.

Reading the aggregate namedoctest
$signature = new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Signature\AggregateSignature(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('total')]), new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Signature\AggregateArguments([]));
    [$signature->name->last()->value, $signature->arguments->star()] // => ['total', true]

Properties§

public DottedName $name
public AggregateArguments $arguments

Methods§

public function __construct(public DottedName $name, public AggregateArguments $arguments)

Parameters

$nameDottedNameThe aggregate name
$argumentsAggregateArgumentsThe argument list
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the argument list.

Parameters

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

Writes the name and the argument list.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 1
Type checks 1
Type declarations 2