| author | cavaliet |
| Mon, 07 Jul 2014 17:23:47 +0200 | |
| changeset 122 | d672f7dd74dc |
| parent 0 | 7f95f8617b0b |
| permissions | -rwxr-xr-x |
| 0 | 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 |
} |