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

Reads and prints typed discriminator literals without PHP array-key coercion.

Methods§

public function read(RelationCursor $cursor): string|int|bool|null

Consumes a string, integer, boolean or NULL literal.

Parameters

Returns

string|int|bool|null
Test cases 2
Called from 1
Calls 9
public function integer(string $literal, RelationCursor $cursor): int

Rejects values outside the current PHP integer range.

Parameters

$literalstring
$cursorRelationCursor

Returns

int
Test cases 1
Called from 1
Calls 3
public function print(string|int|bool|null $value): string

Preserves both the type and the contents of a case value.

Parameters

$valuestring|int|bool|null

Returns

string
Test cases 1
Called from 1
Calls 2

Test cases 22§

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

Dedicated tests 4
Other tests reaching this symbol 18

Relations§

Instantiated in 2
Method calls 2