classMemberRemoval
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.
$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> $typespublic MemberKind $kindpublic IntegerConstant $numberMethods§
public function __construct(
public MemberKind $kind,
public IntegerConstant $number,
list<TypeName> $types,
)Parameters
$kind | MemberKind | Operator or support function |
$number | IntegerConstant | The strategy or support number |
$types | list<TypeName> | The operand types; at least one |
Calls 2
- static-call Check::listOf() line 43
- class-const TypeName::class() line 43
public function deriveClause(Derivation $derivation, Environment $environment): voidpublic function render(Output $out): voidWrites the kind, the number and the types.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 61
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.