| changeset 0 | 7f95f8617b0b |
| -1:000000000000 | 0:7f95f8617b0b |
|---|---|
1 <?php |
|
2 |
|
3 namespace Doctrine\ORM\Query\AST; |
|
4 |
|
5 class Literal extends Node |
|
6 { |
|
7 const STRING = 1; |
|
8 const BOOLEAN = 2; |
|
9 const NUMERIC = 3; |
|
10 |
|
11 public $type; |
|
12 public $value; |
|
13 |
|
14 public function __construct($type, $value) |
|
15 { |
|
16 $this->type = $type; |
|
17 $this->value = $value; |
|
18 } |
|
19 |
|
20 public function dispatch($walker) |
|
21 { |
|
22 return $walker->walkLiteral($this); |
|
23 } |
|
24 } |