classLogicalExpressionParser
final class LogicalExpressionParser
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.
Parses boolean conjunctions and disjunctions in upsert expressions.
Methods§
public function __construct(private ExpressionCursor $cursor)Binds the collaborators used by this operation.
Parameters
$cursor | ExpressionCursor |
public function parseOr(): UpsertExpressionParses boolean conjunctions and disjunctions in upsert expressions.
Returns
Test cases 1
Called from 2
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\PrimaryExpressionParser::parsePrimary() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/PrimaryExpressionParser.php:37
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\SqliteUpsertExpressionParser::parse() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/SqliteUpsertExpressionParser.php:27
Calls 3
- method-call LogicalExpressionParser::parseAnd() line 29
- static-call UpsertExpression::binary() line 32
- class-const UpsertExpressionKind::Or() line 32
public function parseAnd(): UpsertExpressionParses boolean conjunctions and disjunctions in upsert expressions.
Returns
Test cases 1
Called from 2
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\LogicalExpressionParser::parseOr() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/LogicalExpressionParser.php:29
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\LogicalExpressionParser::parseOr() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/LogicalExpressionParser.php:32
Calls 4
- method-call ComparisonExpressionParser::parseComparison() line 43
- new ComparisonExpressionParser line 43
- static-call UpsertExpression::binary() line 46
- class-const UpsertExpressionKind::And() line 46
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\PrimaryExpressionParser::parsePrimary() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/PrimaryExpressionParser.php:37
- new ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\SqliteUpsertExpressionParser::parse() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/SqliteUpsertExpressionParser.php:27
Method calls 2
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\PrimaryExpressionParser::parsePrimary() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/PrimaryExpressionParser.php:37
- method-call ZtdQuery\Platform\Sqlite\Shadow\Mutation\Upsert\SqliteUpsertExpressionParser::parse() packages/ztd-query-sqlite/src/Shadow/Mutation/Upsert/SqliteUpsertExpressionParser.php:27