final class FunctionMember
    implements OperatorClassItem
    uses Snapshot
Public API: explicitly declared with @visibility public.

FUNCTION support_number [(op_type, ...)] function: a support function of an operator class or family.

The parenthesized types, when written, are the operand types the function is registered for in the family. Source: https://www.postgresql.org/docs/17/sql-createopclass.html, https://www.postgresql.org/docs/17/sql-alteropfamily.html.

Reading the support numberdoctest
$member = new \SqlSemantics\Platform\PostgreSql\Statement\Operator\FunctionMember(new \SqlSemantics\Platform\PostgreSql\Statement\Literal\IntegerConstant('1'), new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Signature\RoutineSignature(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('btint4cmp')])));
    [$member->support->digits, $member->operandTypes] // => ['1', null]

Properties§

public non-empty-list<TypeName>|null $operandTypes
public IntegerConstant $support
public RoutineSignature $function

Methods§

public function __construct(
    public IntegerConstant $support,
    public RoutineSignature $function,
    list<TypeName>|null $operandTypes = null,
)

Parameters

$supportIntegerConstantThe support function number
$functionRoutineSignatureThe function
$operandTypeslist<TypeName>|nullThe operand types written in parentheses, at least one; null when not written
Calls 2
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the operand types and the function signature.

Parameters

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

Writes FUNCTION, the number, the operand types and the function.

Parameters

$outOutput
Test cases 1
Calls 3

Test cases 4§

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 1

Relations§

Instantiated in 2