classChoiceLiteral
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|nullConsumes a string, integer, boolean or NULL literal.
Parameters
$cursor | RelationCursor |
Returns
string|int|bool|nullTest cases 2
Called from 1
Calls 9
- method-call RelationCursor::peek() line 23
- method-call PlanStatements::quotedEnd() line 24
- new PlanStatements line 24
- function-call
substrline 25 - function-call
str_replaceline 27 - function-call
preg_matchline 29 - new UnexpectedPlanTokenException line 30
- function-call
strlenline 32 - method-call ChoiceLiteral::integer() line 37
public function integer(string $literal, RelationCursor $cursor): intRejects values outside the current PHP integer range.
Parameters
$literal | string | |
$cursor | RelationCursor |
Returns
intTest cases 1
Called from 1
Calls 3
- function-call
filter_varline 47 - function-call
is_intline 48 - new UnexpectedPlanTokenException line 49
public function print(string|int|bool|null $value): stringPreserves both the type and the contents of a case value.
Parameters
$value | string|int|bool|null |
Returns
stringTest cases 1
Called from 1
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
CaseSelectionTestcallsChoiceBindingsTestcallsChoiceValueExceptionTestcallsInverseRelationsTestcallsResolvedRowTestcallsRowChoicesTestcallsRecursiveRelationExceptionTestcallsRelationValueExceptionTestcallsRowBindingsTestcallsPlanGeneratorTestcallsChoiceCaseTestcallsChoiceDefinitionExceptionTestcallsChoiceSyntaxTestcallsChoiceValidationTestcallsPlanContentsTestcallsFixturePlanTestcallsRelationChoiceTestcallsFixtureProviderTestcalls