classOperandInput
final class OperandInput
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Tracks PostgreSQL operands and operators when escaping question marks for PDO.
Methods§
public function consumeOperator(EscapeCursor $cursor): boolDistinguishes placeholders from question-mark operators and type casts.
Parameters
$cursor | EscapeCursor |
Returns
boolCalled from 1
Calls 2
- function-call
substrline 20 - method-call EscapeCursor::preserve() line 22
public function consumeOperand(EscapeCursor $cursor): boolCopies words and numeric operands while tracking keyword context.
Parameters
$cursor | EscapeCursor |
Returns
boolTest cases 1
Called from 1
Calls 8
- static-call TokenBoundary::isIdentifierStart() line 51
- function-call
str_ends_withline 52 - function-call
strspnline 53 - function-call
substrline 54 - method-call EscapeCursor::preserve() line 55
- static-call TokenBoundary::keywordExpectsOperand() line 56
- function-call
strtoupperline 56 - function-call
ctype_digitline 59
Test cases 5§
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 3
Relations§
Instantiated in 1
Method calls 2
- method-call ZtdQuery\Platform\Postgres\Connection\Parameter\PgSqlPdoPlaceholderEscaper::escape() packages/ztd-query-postgres/src/Connection/Parameter/PgSqlPdoPlaceholderEscaper.php:24
- method-call ZtdQuery\Platform\Postgres\Connection\Parameter\PgSqlPdoPlaceholderEscaper::escape() packages/ztd-query-postgres/src/Connection/Parameter/PgSqlPdoPlaceholderEscaper.php:24