classOperatorMember
final class OperatorMember
implements OperatorClassItem
uses Snapshot
Public API: explicitly declared with
@visibility public.OPERATOR strategy operator [(types)] [FOR SEARCH | FOR ORDER BY family]: an operator of an operator class or family.
Without operand types the operator's operands are the class's data type. The obsolete trailing RECHECK is ignored by the server and not kept. Source: https://www.postgresql.org/docs/17/sql-createopclass.html.
$member = new \SqlSemantics\Platform\PostgreSql\Statement\Operator\OperatorMember(new \SqlSemantics\Platform\PostgreSql\Statement\Literal\IntegerConstant('1'), new \SqlSemantics\Platform\PostgreSql\Statement\Name\OperatorName(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('<')));
$member->strategy->digits // => '1'Properties§
public IntegerConstant $strategypublic OperatorName|OperatorSignature $operatorpublic MemberPurpose|null $purpose = nullMethods§
public function __construct(
public IntegerConstant $strategy,
public OperatorName|OperatorSignature $operator,
public MemberPurpose|null $purpose = null,
)Parameters
$strategy | IntegerConstant | The strategy number |
$operator | OperatorName|OperatorSignature | The operator, with or without operand types, written without OPERATOR(...) |
$purpose | MemberPurpose|null | What the operator is for, if written |
Calls 1
- static-call Check::input() line 39
public function deriveClause(Derivation $derivation, Environment $environment): voidpublic function render(Output $out): voidWrites OPERATOR, the strategy, the operator and the purpose.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 55
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\OperatorClassRule::item() packages/sql-semantics-postgres/src/Lowering/Routine/OperatorClassRule.php:117
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\OperatorClassRule::item() packages/sql-semantics-postgres/src/Lowering/Routine/OperatorClassRule.php:118