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

Formats validated PHP scalars as PostgreSQL literal text.

Methods§

public function quoted(bool|int|float|string|Stringable $value): string

Quotes a validated scalar using PostgreSQL literal escaping.

Parameters

$valuebool|int|float|string|Stringable

Returns

string
Test cases 1
Called from 2
Calls 4
public function untyped(bool|float|Stringable $value): string

Preserves the existing untyped boolean, float and Stringable expression semantics.

Parameters

$valuebool|float|Stringable

Returns

string
Test cases 1
Called from 1
Calls 3

Test cases 13§

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 11

Relations§

Instantiated in 1
Method calls 3