final class MemberRemoval
    implements Clause
    uses Snapshot
Public API: explicitly declared with @visibility public.

OPERATOR strategy (types) or FUNCTION support (types): a member ALTER OPERATOR FAMILY ... DROP removes.

Source: https://www.postgresql.org/docs/17/sql-alteropfamily.html.

Reading the removed memberdoctest
$type = new \SqlSemantics\Platform\PostgreSql\Statement\Type\TypeName(new \SqlSemantics\Platform\PostgreSql\Statement\Type\Designation\NamedDesignation(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('int4')])));
    $removal = new \SqlSemantics\Platform\PostgreSql\Statement\Operator\MemberRemoval(\SqlSemantics\Platform\PostgreSql\Statement\Operator\MemberKind::Operator, new \SqlSemantics\Platform\PostgreSql\Statement\Literal\IntegerConstant('1'), [$type, $type]);
    [$removal->kind->value, count($removal->types)] // => ['OPERATOR', 2]

Properties§

public non-empty-list<TypeName> $types
public MemberKind $kind

Methods§

public function __construct(
    public MemberKind $kind,
    public IntegerConstant $number,
    list<TypeName> $types,
)

Parameters

$kindMemberKindOperator or support function
$numberIntegerConstantThe strategy or support number
$typeslist<TypeName>The operand types; at least one
Calls 2
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the type modifiers.

Parameters

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

Writes the kind, the number and the types.

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 1
Constant reads 1