classLiteralReader
final class LiteralReader
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Literal Reader.
Methods§
public function identifier(SqlToken $token): stringIdentifier for the supplied MySQL input.
Parameters
$token | SqlToken |
Returns
stringTest cases 1
Called from 3
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseValuesReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:243
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseColumnReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:302
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseColumnReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:321
Calls 3
- class-const SqlTokenKind::Word() line 24
- function-call
substrline 28 - function-call
str_replaceline 30
public function number(string $literal): int|floatNumber for the supplied MySQL input.
Parameters
$literal | string |
Returns
int|floatThrows
Test cases 2
Called from 1
Test cases 10§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 7
MySqlSessionFactoryTestcallsMySqlRewriterTestcallsStatementRewriterTestcallsRowMutationResolverTestcallsExpressionReaderTestcallsMySqlUpsertExpressionParserTestcallsMySqlMutationResolverTestcalls
Relations§
Instantiated in 4
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parsePrimary() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:201
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseValuesReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:243
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseColumnReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:302
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseColumnReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:321
Method calls 4
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parsePrimary() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:201
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseValuesReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:243
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseColumnReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:302
- method-call ZtdQuery\Platform\MySql\Shadow\Mutation\Upsert\ExpressionReader::parseColumnReference() packages/ztd-query-mysql/src/Shadow/Mutation/Upsert/ExpressionReader.php:321