classAggregateSignature
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.
$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 $namepublic AggregateArguments $argumentsMethods§
public function __construct(public DottedName $name, public AggregateArguments $arguments)Parameters
$name | DottedName | The aggregate name |
$arguments | AggregateArguments | The argument list |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the argument list.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
Calls 1
- method-call AggregateArguments::deriveClause() line 42
public function render(Output $out): voidWrites the name and the argument list.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::node() line 50
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.