diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/NullIfExpression.php')
| -rw-r--r-- | vendor/doctrine/orm/src/Query/AST/NullIfExpression.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/NullIfExpression.php b/vendor/doctrine/orm/src/Query/AST/NullIfExpression.php new file mode 100644 index 0000000..6fffeeb --- /dev/null +++ b/vendor/doctrine/orm/src/Query/AST/NullIfExpression.php | |||
| @@ -0,0 +1,24 @@ | |||
| 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 | * NullIfExpression ::= "NULLIF" "(" ScalarExpression "," ScalarExpression ")" | ||
| 11 | * | ||
| 12 | * @link www.doctrine-project.org | ||
| 13 | */ | ||
| 14 | class NullIfExpression extends Node | ||
| 15 | { | ||
| 16 | public function __construct(public mixed $firstExpression, public mixed $secondExpression) | ||
| 17 | { | ||
| 18 | } | ||
| 19 | |||
| 20 | public function dispatch(SqlWalker $walker): string | ||
| 21 | { | ||
| 22 | return $walker->walkNullIfExpression($this); | ||
| 23 | } | ||
| 24 | } | ||
