final class Transforms
    implements RoutineOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

TRANSFORM FOR TYPE type, ...: the types whose transforms the routine applies.

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

Counting the transformed typesdoctest
$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('hstore')])));
    count((new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\Transforms([$type]))->types) // => 1

Properties§

public non-empty-list<TypeName> $types

Methods§

public function __construct(list<TypeName> $types)

Parameters

$typeslist<TypeName>The types in written order; at least one
Calls 2
public function alterable(): bool

Tells that ALTER does not accept the option.

Returns

bool
Test cases 1
public function setting(): string

Answers transform.

Returns

string
Test cases 1
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 TRANSFORM and each type after FOR TYPE.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 5§

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

Dedicated tests 5

Relations§

Instantiated in 1