classExpressionCast
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
$castRenderer | CastRenderer |
public function castInsertExpression(string $expression, ColumnDeclaration $type): stringCast insert expression.
Parameters
$expression | string | |
$type | ColumnDeclaration |
Returns
stringTest cases 1
Called from 1
Calls 2
- class-const ColumnTypeFamily::BOOLEAN() line 33
- method-call CastRenderer::renderCast() line 37
public function projection(
array<string, string> $projected,
array<string, ColumnDeclaration> $columnTypes,
): stringCasts projected expressions and assigns their target column names.
Parameters
$projected | array<string, string> | |
$columnTypes | array<string, ColumnDeclaration> |
Returns
stringCalled from 1
Calls 2
- method-call ExpressionCast::castInsertExpression() line 50
- function-call
implodeline 54
Private surface 1§
Implementation details, listed for orientation only.
private CastRenderer $castRendererTest 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
PgSqlSessionFactoryTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsValueProjectionTestcallsInsertTransformerTestcallsPgSqlTransformerTestcalls