summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Query/AST/Literal.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/Literal.php')
-rw-r--r--vendor/doctrine/orm/src/Query/AST/Literal.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/Literal.php b/vendor/doctrine/orm/src/Query/AST/Literal.php
new file mode 100644
index 0000000..9ec2036
--- /dev/null
+++ b/vendor/doctrine/orm/src/Query/AST/Literal.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
9class Literal extends Node
10{
11 final public const STRING = 1;
12 final public const BOOLEAN = 2;
13 final public const NUMERIC = 3;
14
15 /** @psalm-param self::* $type */
16 public function __construct(
17 public int $type,
18 public mixed $value,
19 ) {
20 }
21
22 public function dispatch(SqlWalker $walker): string
23 {
24 return $walker->walkLiteral($this);
25 }
26}