classComparisonExpressionParser
final class ComparisonExpressionParser
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.
Parses relational operators in upsert predicates.
Methods§
public function __construct(private ExpressionCursor $cursor)Binds the collaborators used by this operation.
Parameters
$cursor | ExpressionCursor |
public function parseComparison(): UpsertExpressionParses relational operators in upsert predicates.
Returns
Test cases 1
Called from 2
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\LogicalExpressionParser::parseAnd() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/LogicalExpressionParser.php:43
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\LogicalExpressionParser::parseAnd() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/LogicalExpressionParser.php:46
Calls 4
- method-call ArithmeticExpressionParser::parseAdditive() line 29
- new ArithmeticExpressionParser line 29
- method-call ComparisonExpressionParser::comparisonOperator() line 30
- static-call UpsertExpression::binary() line 34
public function comparisonOperator(): ?UpsertExpressionKindParses relational operators in upsert predicates.
Returns
Throws
Called from 1
Calls 9
- method-call ExpressionTokenDecoder::isSymbol() line 44
- new ExpressionTokenDecoder line 44
- class-const UpsertExpressionKind::Equal() line 56
- class-const UpsertExpressionKind::NotEqual() line 57
- class-const UpsertExpressionKind::Less() line 58
- class-const UpsertExpressionKind::LessOrEqual() line 59
- class-const UpsertExpressionKind::Greater() line 60
- class-const UpsertExpressionKind::GreaterOrEqual() line 61
- method-call ExpressionTokenDecoder::unsupported() line 62
Private surface 1§
Implementation details, listed for orientation only.
private ExpressionCursor $cursorTest cases 11§
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 9
Relations§
Instantiated in 2
- new ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\LogicalExpressionParser::parseAnd() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/LogicalExpressionParser.php:43
- new ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\LogicalExpressionParser::parseAnd() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/LogicalExpressionParser.php:46
Method calls 2
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\LogicalExpressionParser::parseAnd() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/LogicalExpressionParser.php:43
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\LogicalExpressionParser::parseAnd() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/LogicalExpressionParser.php:46