classMySqlQuoting
final class MySqlQuoting
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Encodes chosen text using MySQL quoting rules, independently of generation.
Methods§
public static function identifier(string $body): stringQuotes an identifier and escapes embedded delimiters.
Parameters
$body | string |
Returns
stringTest cases 1
Calls 1
- function-call
str_replaceline 19
public static function stringLiteral(string $body): stringQuotes a string body and doubles embedded single quotes.
Parameters
$body | string |
Returns
stringTest cases 1
Calls 1
- function-call
str_replaceline 27
Test cases 4§
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 2
LexicalExceptionTestcallsLexicalGrammarTestcalls