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

A function, procedure or routine named with or without its argument list.

Mirrors PostgreSQL's ObjectWithArgs for function_with_argtypes. Without an argument list (args_unspecified) the name must identify one routine; an empty list names the routine without arguments. The argument types identify the routine; argument names and output arguments are written but do not take part in the lookup of a function. Source: https://www.postgresql.org/docs/17/sql-dropfunction.html.

Telling a name without an argument listdoctest
$signature = new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Signature\RoutineSignature(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('f')]));
    $signature->arguments // => null

Properties§

public list<FunctionParameter>|null $arguments
public DottedName $name

Methods§

public function __construct(
    public DottedName $name,
    list<FunctionParameter>|null $arguments = null,
)

Parameters

$nameDottedNameThe routine name
$argumentslist<FunctionParameter>|nullThe written arguments, without default values; null when no argument list is written
Calls 3
public function render(Output $out): void

Writes the name and the argument list, if any.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 8§

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

Dedicated tests 3
Other tests reaching this symbol 5

Relations§

Instantiated in 4
Method calls 2
Constant reads 1
Type checks 1
Type declarations 4