summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Query/AST/WhenClause.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/WhenClause.php')
-rw-r--r--vendor/doctrine/orm/src/Query/AST/WhenClause.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/WhenClause.php b/vendor/doctrine/orm/src/Query/AST/WhenClause.php
new file mode 100644
index 0000000..9bf194e
--- /dev/null
+++ b/vendor/doctrine/orm/src/Query/AST/WhenClause.php
@@ -0,0 +1,26 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Query\AST;
6
7use Doctrine\ORM\Query\SqlWalker;
8
9/**
10 * WhenClause ::= "WHEN" ConditionalExpression "THEN" ScalarExpression
11 *
12 * @link www.doctrine-project.org
13 */
14class WhenClause extends Node
15{
16 public function __construct(
17 public ConditionalExpression|Phase2OptimizableConditional $caseConditionExpression,
18 public mixed $thenScalarExpression = null,
19 ) {
20 }
21
22 public function dispatch(SqlWalker $walker): string
23 {
24 return $walker->walkWhenClauseExpression($this);
25 }
26}