diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/Literal.php')
-rw-r--r-- | vendor/doctrine/orm/src/Query/AST/Literal.php | 26 |
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 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Query\AST; | ||
6 | |||
7 | use Doctrine\ORM\Query\SqlWalker; | ||
8 | |||
9 | class 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 | } | ||