blob: 9ec20366c0df01c00cbbf0becd71402c5088b460 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Query\AST;
use Doctrine\ORM\Query\SqlWalker;
class Literal extends Node
{
final public const STRING = 1;
final public const BOOLEAN = 2;
final public const NUMERIC = 3;
/** @psalm-param self::* $type */
public function __construct(
public int $type,
public mixed $value,
) {
}
public function dispatch(SqlWalker $walker): string
{
return $walker->walkLiteral($this);
}
}
|