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.

Reading the strategy numberdoctest
$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 $strategy
public MemberPurpose|null $purpose = null

Methods§

public function __construct(
    public IntegerConstant $strategy,
    public OperatorName|OperatorSignature $operator,
    public MemberPurpose|null $purpose = null,
)

Parameters

$strategyIntegerConstantThe strategy number
$operatorOperatorName|OperatorSignatureThe operator, with or without operand types, written without OPERATOR(...)
$purposeMemberPurpose|nullWhat the operator is for, if written
Calls 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the operand types.

Parameters

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

Writes OPERATOR, the strategy, the operator and the purpose.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 2