final class MySqlCastRenderer
    implements CastRenderer

MySQL implementation of CastRenderer.

Maps ColumnDeclaration to MySQL CAST syntax (e.g. CAST(expr AS SIGNED), CAST(expr AS CHAR)).

Methods§

public function renderCast(string $expression, ColumnDeclaration $type): string

Render Cast for the supplied MySQL input.

Parameters

$expressionstring
$typeColumnDeclaration

Returns

string
Test cases 50
Calls 19
public function renderNullCast(ColumnDeclaration $type): string

Render Null Cast for the supplied MySQL input.

Parameters

Returns

string
Test cases 19
Calls 17

Test cases 90§

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

Dedicated tests 67
Other tests reaching this symbol 23

Relations§

Instantiated in 3