classTokenBoundary
final class TokenBoundary
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Recognizes ASCII token boundaries and operand-expecting keywords for PDO.
Methods§
public static function keywordExpectsOperand(string $keyword): boolKeyword expects operand.
Parameters
$keyword | string |
Returns
boolTest cases 1
Called from 1
Calls 1
- function-call
in_arrayline 19
public static function isIdentifierStart(string $char): boolIs identifier start.
Parameters
$char | string |
Returns
boolTest cases 1
Called from 4
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\OperandInput::consumeOperand() packages/ztd-query-postgres/src/Connection/Parameter/OperandInput.php:51
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\TokenBoundary::isIdentifierContinuation() packages/ztd-query-postgres/src/Connection/Parameter/TokenBoundary.php:79
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\TokenBoundary::dollarQuoteDelimiter() packages/ztd-query-postgres/src/Connection/Parameter/TokenBoundary.php:105
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\TokenBoundary::dollarQuoteDelimiter() packages/ztd-query-postgres/src/Connection/Parameter/TokenBoundary.php:109
public static function isIdentifierContinuation(string $char): boolIs identifier continuation.
Parameters
$char | string |
Returns
boolCalled from 1
Calls 2
- static-call TokenBoundary::isIdentifierStart() line 79
- function-call
ctype_digitline 80
public static function isEscapeStringStart(string $sql, int $quotePosition): boolIs escape string start.
Parameters
$sql | string | |
$quotePosition | int |
Returns
boolTest cases 1
Called from 1
Calls 4
- function-call
substrline 89 - function-call
str_ends_withline 91 - function-call
strlenline 92 - static-call TokenBoundary::isIdentifierContinuation() line 92
public static function dollarQuoteDelimiter(string $sql, int $position): ?stringDollar quote delimiter.
Parameters
$sql | string | |
$position | int |
Returns
?stringTest cases 1
Called from 1
Calls 4
- function-call
strlenline 100 - static-call TokenBoundary::isIdentifierStart() line 105
- function-call
ctype_digitline 109 - function-call
substrline 116
Test cases 10§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 5
TokenBoundaryTest::testDollarQuoteDelimiterPreservesTheTagcallsTokenBoundaryTest::testIsEscapeStringStartRequiresATokenBoundarycallsTokenBoundaryTest::testIsIdentifierContinuationAlsoAllowsDigitsAndDollarscallsTokenBoundaryTest::testIsIdentifierStartUsesAsciiLettersOrUnderscorescallsTokenBoundaryTest::testKeywordExpectsOperandRecognizesContextcalls
Other tests reaching this symbol 5
OperandInputTestcallsPgSqlPdoParameterBindingCompilerTestcallsPgSqlPdoPlaceholderEscaperTestcallsQuotedInputTestcallsPgSqlSessionFactoryTestcalls
Relations§
Static calls 4
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\OperandInput::consumeOperand() packages/ztd-query-postgres/src/Connection/Parameter/OperandInput.php:51
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\OperandInput::consumeOperand() packages/ztd-query-postgres/src/Connection/Parameter/OperandInput.php:56
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\QuotedInput::consumeQuoted() packages/ztd-query-postgres/src/Connection/Parameter/QuotedInput.php:49
- static-call ZtdQuery\Platform\Postgres\Connection\Parameter\QuotedInput::consumeQuoted() packages/ztd-query-postgres/src/Connection/Parameter/QuotedInput.php:57