Literal.php 405B

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