vendor/doctrine/lib/Doctrine/ORM/Query/AST/Literal.php
author cavaliet
Wed, 26 Oct 2011 16:01:33 +0200
changeset 17 a16b5806e3f0
parent 0 7f95f8617b0b
permissions -rwxr-xr-x
Little modification to enable routing from tag list.

<?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);
    }
}