diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/SimpleCaseExpression.php')
| -rw-r--r-- | vendor/doctrine/orm/src/Query/AST/SimpleCaseExpression.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/SimpleCaseExpression.php b/vendor/doctrine/orm/src/Query/AST/SimpleCaseExpression.php new file mode 100644 index 0000000..b3764ba --- /dev/null +++ b/vendor/doctrine/orm/src/Query/AST/SimpleCaseExpression.php | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Query\AST; | ||
| 6 | |||
| 7 | use Doctrine\ORM\Query\SqlWalker; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * SimpleCaseExpression ::= "CASE" CaseOperand SimpleWhenClause {SimpleWhenClause}* "ELSE" ScalarExpression "END" | ||
| 11 | * | ||
| 12 | * @link www.doctrine-project.org | ||
| 13 | */ | ||
| 14 | class SimpleCaseExpression extends Node | ||
| 15 | { | ||
| 16 | /** @param mixed[] $simpleWhenClauses */ | ||
| 17 | public function __construct( | ||
| 18 | public PathExpression|null $caseOperand = null, | ||
| 19 | public array $simpleWhenClauses = [], | ||
| 20 | public mixed $elseScalarExpression = null, | ||
| 21 | ) { | ||
| 22 | } | ||
| 23 | |||
| 24 | public function dispatch(SqlWalker $walker): string | ||
| 25 | { | ||
| 26 | return $walker->walkSimpleCaseExpression($this); | ||
| 27 | } | ||
| 28 | } | ||
