final class ExpressionCast
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Expression cast operations for PostgreSQL insert.

Methods§

public function __construct(CastRenderer $castRenderer)

Supplies the dependencies used by this ExpressionCast.

Parameters

$castRendererCastRenderer
public function castInsertExpression(string $expression, ColumnDeclaration $type): string
public function projection(
    array<string, string> $projected,
    array<string, ColumnDeclaration> $columnTypes,
): string

Casts projected expressions and assigns their target column names.

Parameters

$projectedarray<string, string>
$columnTypesarray<string, ColumnDeclaration>

Returns

string
Test cases 1
Called from 1
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private CastRenderer $castRenderer

Test cases 8§

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

Dedicated tests 2
Other tests reaching this symbol 6

Relations§

Instantiated in 1
Method calls 1