vendor/doctrine/lib/Doctrine/ORM/Query/AST/Literal.php
author cavaliet
Mon, 07 Jul 2014 17:23:47 +0200
changeset 122 d672f7dd74dc
parent 0 7f95f8617b0b
permissions -rwxr-xr-x
Added tag V00.17 for changeset ada5f3d8b5b4

<?php

namespace Doctrine\ORM\Query\AST;

class Literal extends Node
{
    const STRING = 1;
    const BOOLEAN = 2;
    const NUMERIC = 3;
    
    public $type;
    public $value;
    
    public function __construct($type, $value)
    {
        $this->type = $type;
        $this->value = $value;
    }
    
    public function dispatch($walker)
    {
        return $walker->walkLiteral($this);
    }
}