classFunctionMember
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.
$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 $operandTypespublic IntegerConstant $supportpublic RoutineSignature $functionMethods§
public function __construct(
public IntegerConstant $support,
public RoutineSignature $function,
list<TypeName>|null $operandTypes = null,
)Parameters
$support | IntegerConstant | The support function number |
$function | RoutineSignature | The function |
$operandTypes | list<TypeName>|null | The operand types written in parentheses, at least one; null when not written |
Calls 2
- static-call Check::listOf() line 44
- class-const TypeName::class() line 44
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the operand types and the function signature.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
Calls 1
- method-call RoutineSignature::deriveClause() line 55
public function render(Output $out): voidWrites FUNCTION, the number, the operand types and the function.
Parameters
$out | Output |
Test cases 1
Calls 3
- method-call Output::keyword() line 63
- method-call Output::symbol() line 65
- method-call Output::node() line 67
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
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\OperatorClassRule::item() packages/sql-semantics-postgres/src/Lowering/Routine/OperatorClassRule.php:119
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\OperatorClassRule::item() packages/sql-semantics-postgres/src/Lowering/Routine/OperatorClassRule.php:120